From 66a212f7c46d6ca603618477f556ffef8208411a Mon Sep 17 00:00:00 2001 From: A_D Date: Thu, 20 Jan 2022 16:26:04 +0200 Subject: [PATCH] move UTC to hardcoded, add comment --- EDMCLogging.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EDMCLogging.py b/EDMCLogging.py index c98ebe04..3f08f436 100644 --- a/EDMCLogging.py +++ b/EDMCLogging.py @@ -166,7 +166,10 @@ class Logger: self.logger_formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(process)d:%(thread)d:%(osthreadid)d %(module)s.%(qualname)s:%(lineno)d: %(message)s') # noqa: E501 self.logger_formatter.default_time_format = '%Y-%m-%d %H:%M:%S' - self.logger_formatter.default_msec_format = '%s.%03d' + # WORKAROUND n/a | 2022-01-20: This is concatted to the above time format, so including %Z there is broken + # As a sidenote, this will not always match with journal time etc. As that's based + # on the elite server side time + self.logger_formatter.default_msec_format = '%s.%03d UTC' self.logger_channel.setFormatter(self.logger_formatter) self.logger.addHandler(self.logger_channel)