From da1bfa6411939ca087ea465e597c7ee4d61e1b97 Mon Sep 17 00:00:00 2001 From: Mariot Tsitoara Date: Wed, 29 Oct 2025 14:00:14 +0100 Subject: [PATCH] [deprecation] move pythonjsonlogger.jsonlogger to pythonjsonlogger.json --- pycti/utils/opencti_logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pycti/utils/opencti_logger.py b/pycti/utils/opencti_logger.py index 80428b11..e9512ca7 100644 --- a/pycti/utils/opencti_logger.py +++ b/pycti/utils/opencti_logger.py @@ -1,10 +1,10 @@ import logging from datetime import datetime, timezone -from pythonjsonlogger import jsonlogger +from pythonjsonlogger import json -class CustomJsonFormatter(jsonlogger.JsonFormatter): +class CustomJsonFormatter(json.JsonFormatter): """Custom JSON formatter for structured logging.""" def add_fields(self, log_record, record, message_dict):