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.fix/verification-admin-route-recovery
parent
2b3a4f0af8
commit
0a7ae28ebc
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue