From 957ce4c4a57cf9238aec886078252c93383da9c1 Mon Sep 17 00:00:00 2001 From: "Gavin M. Roy" Date: Fri, 16 Sep 2016 15:45:23 -0400 Subject: [PATCH] Update for structured syslog output when non-debug --- sprockets/http/__init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sprockets/http/__init__.py b/sprockets/http/__init__.py index 6dd75e4..18e7a75 100644 --- a/sprockets/http/__init__.py +++ b/sprockets/http/__init__.py @@ -123,7 +123,14 @@ def _get_logging_config(debug): 'incremental': False, 'formatters': { 'info': { - 'format': '%(levelname)1.1s %(name)s %(message)s' + 'format': ('%(levelname)1.1s' + '[sprockets@34085' + ' logger="%(name)s"' + ' process="%(process)s"' + ' line="%(lineno)d"' + ' function="%(funcName)s"' + ' module="%(module)s"' + '] %(message)s') } }, 'handlers': {