Skip to content

Commit 3c7d78f

Browse files
committed
log: json formatter: do not use datetime.UTC alias
1 parent 23e6464 commit 3c7d78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enapter/log/json_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class JSONFormatter(json_log_formatter.JSONFormatter):
77
def json_record(self, message, extra, record):
88
json_record = {
9-
"time": datetime.datetime.now(datetime.UTC).isoformat(),
9+
"time": datetime.datetime.now(datetime.timezone.utc).isoformat(),
1010
"level": record.levelname[:4],
1111
"name": record.name,
1212
**extra,

0 commit comments

Comments
 (0)