From a838c154135b2420d9047a101caf24a2c9f593c2 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Sun, 11 Jul 2021 10:16:07 -0700 Subject: Random cleanups and type safety. Created ml subdir. --- logging_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'logging_utils.py') 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: -- cgit v1.3