starting a fresh tidy
This commit is contained in:
@@ -3,6 +3,7 @@ import json
|
||||
import logging
|
||||
from typing import override
|
||||
|
||||
|
||||
class custom_json_logger(logging.Formatter):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -21,7 +22,7 @@ class custom_json_logger(logging.Formatter):
|
||||
always_fields = {
|
||||
"message" : record.getMessage(),
|
||||
"timestamp" : dt.datetime.fromtimestamp(
|
||||
record.created, tz=dt.timezone.utc
|
||||
record.created, tz=dt.UTC
|
||||
).isoformat(),
|
||||
}
|
||||
if record.exc_info is not None:
|
||||
|
||||
Reference in New Issue
Block a user