From 954991f71375fcad97735dd879110ee985700754 Mon Sep 17 00:00:00 2001 From: Mark Waddle Date: Wed, 16 Oct 2024 14:24:48 -0700 Subject: [PATCH] Removes unused logging handler (#131) --- .../semantic_workbench_assistant/logging_config.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libraries/python/semantic-workbench-assistant/semantic_workbench_assistant/logging_config.py b/libraries/python/semantic-workbench-assistant/semantic_workbench_assistant/logging_config.py index e147d2d6..31b4b57a 100644 --- a/libraries/python/semantic-workbench-assistant/semantic_workbench_assistant/logging_config.py +++ b/libraries/python/semantic-workbench-assistant/semantic_workbench_assistant/logging_config.py @@ -40,18 +40,6 @@ def process_log_record(self, log_record): return log_record -class JSONHandler(logging.StreamHandler): - def __init__(self, max_message_length: int): - super().__init__() - self.setFormatter( - CustomJSONFormatter( - "%(name)s %(filename)s %(module)s %(lineno)s %(levelname)s %(correlation_id)s %(message)s", - timestamp=True, - max_message_length=max_message_length, - ) - ) - - class DebugLevelForNoisyLogFilter(logging.Filter): """Lowers log level to DEBUG for logs that match specific logger names and message patterns."""