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.
This commit is contained in:
annguyenNous 2026-06-22 07:55:19 +07:00 committed by Teknium
parent 2b3a4f0af8
commit 0a7ae28ebc

View file

@ -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):