diff options
Diffstat (limited to 'src/Logging.py')
| -rw-r--r-- | src/Logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Logging.py b/src/Logging.py index 61b90402..0f636587 100644 --- a/src/Logging.py +++ b/src/Logging.py @@ -13,7 +13,8 @@ LEVELS = { class BitBotFormatter(logging.Formatter): def formatTime(self, record, datefmt=None): datetime_obj = datetime.datetime.fromtimestamp(record.created) - return utils.datetime.iso8601_format(datetime_obj, milliseconds=True) + return utils.datetime.iso8601_format(datetime_obj, + timespec=utils.datetime.TimeSpec.MILLISECOND) class HookedHandler(logging.StreamHandler): def __init__(self, func: typing.Callable[[int, str], None]): |
