From c21c3c20bd53c71b9ce55d04ec84ae5779bfa5db Mon Sep 17 00:00:00 2001 From: Kevin Littlejohn Date: Wed, 13 Aug 2014 08:59:26 +1000 Subject: [PATCH] added timezone to logging --- gunicorn/glogging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn/glogging.py b/gunicorn/glogging.py index 8285c798f..b54ac809d 100644 --- a/gunicorn/glogging.py +++ b/gunicorn/glogging.py @@ -65,7 +65,7 @@ formatters={ "generic": { "format": "%(asctime)s [%(process)d] [%(levelname)s] %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S", + "datefmt": "[%Y-%m-%d %H:%M:%S %z]", "class": "logging.Formatter" } } @@ -157,7 +157,7 @@ class Logger(object): } error_fmt = r"%(asctime)s [%(process)d] [%(levelname)s] %(message)s" - datefmt = r"%Y-%m-%d %H:%M:%S" + datefmt = r"[%Y-%m-%d %H:%M:%S %z]" access_fmt = "%(message)s" syslog_fmt = "[%(process)d] %(message)s"