From b3809403e38794697e6607c4b21bd9f45153f074 Mon Sep 17 00:00:00 2001 From: Alex Burlacu Date: Thu, 6 Apr 2023 16:31:21 +0300 Subject: [PATCH] Fix interfering logs in pipelines --- clearml/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/logger.py b/clearml/logger.py index 89c9fb33..87e776b5 100644 --- a/clearml/logger.py +++ b/clearml/logger.py @@ -90,7 +90,7 @@ class Logger(object): if self._connect_logging: StdStreamPatch.patch_logging_formatter(self) - elif not self._connect_std_streams: + elif not self._connect_std_streams and self._task.is_main_task(): # make sure that at least the main clearml logger is connect base_logger = LoggerRoot.get_base_logger() if base_logger and base_logger.handlers: