summaryrefslogtreecommitdiff
path: root/logging_utils.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-07-11 10:16:07 -0700
committerScott Gasch <[email protected]>2021-07-11 10:16:07 -0700
commita838c154135b2420d9047a101caf24a2c9f593c2 (patch)
treefbb0f6a0e66b4826352003d67f6e20bbcda0dda4 /logging_utils.py
parent7d7a3ce0abb26766e82c6dfed8a196baa63b736a (diff)
Random cleanups and type safety. Created ml subdir.
Diffstat (limited to 'logging_utils.py')
-rw-r--r--logging_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/logging_utils.py b/logging_utils.py
index 700bfab..9c78f3f 100644
--- a/logging_utils.py
+++ b/logging_utils.py
@@ -102,7 +102,9 @@ class MillisecondAwareFormatter(logging.Formatter):
converter = datetime.datetime.fromtimestamp
def formatTime(self, record, datefmt=None):
- ct = self.converter(record.created, pytz.timezone("US/Pacific"))
+ ct = MillisecondAwareFormatter.converter(
+ record.created, pytz.timezone("US/Pacific")
+ )
if datefmt:
s = ct.strftime(datefmt)
else: