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

Reorder and clarify some comments

This commit is contained in:
A_D 2022-01-20 16:48:29 +02:00
parent 3b4f6a4e85
commit 71261fc3d9
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -170,8 +170,8 @@ 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'
# MAGIC n/a | 2022-01-20: As of Python 3.10.2 you can *not* use either `%s.%03.d` in default_time_format
# MAGIC-CONT: *or* use `%Z` in default_time_msec (as its concatted to default_msec).
# MAGIC-CONT: UTC is hardcoded here because we know it always will be (see above MAGIC comment)
# MAGIC-CONT: (throws exceptions), *or* use `%Z` in default_time_msec (formatting issues).
# UTC is hardcoded here because we know it always will be (see above MAGIC comment)
self.logger_formatter.default_msec_format = '%s.%03d UTC'
self.logger_channel.setFormatter(self.logger_formatter)