summaryrefslogtreecommitdiff
path: root/logging_utils.py
diff options
context:
space:
mode:
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: