Skip to content

Commit 718eabb

Browse files
authored
Merge branch 'main' into feature/add-uid-to-ps-everywhere
2 parents e6e78e6 + c03cf3f commit 718eabb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies = [
3131
"numpy>=2.2.0,<2.3.0",
3232
"nska-deserialize>=1.5.0,<1.6.0",
3333
"yara-python>=4.5.0,<4.6.0",
34-
"python-json-logger>=3.3.0,<3.4.0",
34+
"python-json-logger>=3.3.0,<4.1.0",
3535
"python-magic>=0.4.0,<0.5.0",
3636
"jinja2>=3.1.0,<3.2.0",
3737
"matplotlib>=3.10.0,<3.11.0",

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)