Skip to content

Commit c03cf3f

Browse files
authored
Merge pull request #211 from EC-DIGIT-CSIRC/json-logger-quickfix
fix: json-logger new package naming
2 parents cafcf51 + 4957944 commit c03cf3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sysdiagnose/utils/logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import logging
2-
from pythonjsonlogger import jsonlogger
2+
from pythonjsonlogger import json
33
from datetime import datetime
44

55
logger = logging.getLogger('sysdiagnose')
66
# By default, we want to have the possibility to log everything.
77
logger.setLevel(logging.DEBUG)
88

99

10-
class SysdiagnoseJsonFormatter(jsonlogger.JsonFormatter):
10+
class SysdiagnoseJsonFormatter(json.JsonFormatter):
1111
'''Custom JSON logger formatter '''
1212
# https://stackoverflow.com/questions/50873446/python-logger-output-dates-in-is8601-format
1313
def formatTime(self, record, datefmt=None):

0 commit comments

Comments
 (0)