1
Fork 0

fix(log): avoid duplicates in logs

This commit is contained in:
Tibo De Peuter 2026-04-09 00:14:28 +02:00
parent fe10faa344
commit 2f31df412b
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU

View file

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