1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

move UTC to hardcoded, add comment

This commit is contained in:
A_D 2022-01-20 16:26:04 +02:00
parent 85f7bddef0
commit 66a212f7c4
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -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)