Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 4a79f27

Browse files
fix: oops
1 parent 9b7b5a2 commit 4a79f27

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

utils/logging_configuration.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import json
2+
from datetime import datetime
23
from logging import Filter
34

45
from pythonjsonlogger.jsonlogger import JsonFormatter
56
from sentry_sdk import get_current_span
67

78

89
class BaseLogger(JsonFormatter):
9-
def add_fields(self, log_record, record, message_dict):
10+
def add_fields(self, log_record, record, message_dict): -> None
1011
super(BaseLogger, self).add_fields(log_record, record, message_dict)
1112

12-
asctime_format = '%Y-%m-%d %H:%M:%S,%f'
13-
asctime = datetime.strptime(log_record.get('asctime'), asctime_format)
13+
asctime_format = "%Y-%m-%d %H:%M:%S,%f"
14+
asctime = datetime.strptime(log_record.get("asctime"), asctime_format)
1415

1516
log_record["utctime"] = asctime.isoformat()
1617

0 commit comments

Comments
 (0)