From 0a7ae28ebc1a5e1c86cc43d78c215fb224b618a8 Mon Sep 17 00:00:00 2001 From: annguyenNous Date: Mon, 22 Jun 2026 07:55:19 +0700 Subject: [PATCH] fix(compressor): remove logging.basicConfig from library class __init__ logging.basicConfig() in TrajectoryCompressor.__init__ overrides the root logger configuration every time the class is instantiated. Library code should use logging.getLogger(__name__) and let the application entry point configure the root logger. Fixes inconsistent log formatting when the compressor is used alongside other logging configuration in the gateway. --- trajectory_compressor.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/trajectory_compressor.py b/trajectory_compressor.py index 9dc3826a854..45d2386e933 100644 --- a/trajectory_compressor.py +++ b/trajectory_compressor.py @@ -352,11 +352,6 @@ class TrajectoryCompressor: # Initialize OpenRouter client self._init_summarizer() - logging.basicConfig( - level=logging.INFO, - format='%(asctime)s - %(levelname)s - %(message)s', - datefmt='%H:%M:%S' - ) self.logger = logging.getLogger(__name__) def _init_tokenizer(self):