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

Commit da1bfa6

Browse files
committed
[deprecation] move pythonjsonlogger.jsonlogger to pythonjsonlogger.json
1 parent a6fc501 commit da1bfa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycti/utils/opencti_logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import logging
22
from datetime import datetime, timezone
33

4-
from pythonjsonlogger import jsonlogger
4+
from pythonjsonlogger import json
55

66

7-
class CustomJsonFormatter(jsonlogger.JsonFormatter):
7+
class CustomJsonFormatter(json.JsonFormatter):
88
"""Custom JSON formatter for structured logging."""
99

1010
def add_fields(self, log_record, record, message_dict):

0 commit comments

Comments
 (0)