fix(log): avoid duplicates in logs
This commit is contained in:
parent
fe10faa344
commit
2f31df412b
1 changed files with 1 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ class UnifiedLogger:
|
|||
self.text_log_file = self.run_dir / "run.log"
|
||||
self._text_logger = logging.getLogger(f"UnifiedLogger_{self.run_name}")
|
||||
self._text_logger.setLevel(log_level)
|
||||
self._text_logger.propagate = False
|
||||
|
||||
# Avoid duplicate handlers if re-instantiated
|
||||
if not self._text_logger.handlers:
|
||||
|
|
|
|||
Reference in a new issue