aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-21 10:35:05 +0100
committerGravatar jesopo2018-09-21 10:35:05 +0100
commit02d361c8b648ec22d4ac9932dc9f3d1e6e3f0bec (patch)
tree8c4bf3ac980e4034ef2c0c6436a4491b50a9bcfa
parentOnly accept PROTOCOL_TLS as SSL handshake version (diff)
signature
Show logging timestamp as UTC/GMT
-rw-r--r--Logging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Logging.py b/Logging.py
index dadde2b9..22d10711 100644
--- a/Logging.py
+++ b/Logging.py
@@ -20,7 +20,8 @@ class Log(object):
formatter = BitBotFormatter(
"%(asctime)s [%(levelname)s] %(message)s",
- "%Y-%m-%dT%H:%M:%S.%f%z")
+ "%Y-%m-%dT%H:%M:%S.%fZ")
+ formatter.converter = time.gmtime
stdout_handler = logging.StreamHandler(sys.stdout)
stdout_handler.setLevel(logging.INFO)