mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-23 10:42:00 +00:00
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:
parent
2b3a4f0af8
commit
0a7ae28ebc
1 changed files with 0 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue