Skip to content

Commit

Permalink
Fix interfering logs in pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-burlacu-clear-ml committed Apr 6, 2023
1 parent a60df13 commit b380940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clearml/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, private_task, connect_stdout=True, connect_stderr=True, conne

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:
Expand Down

0 comments on commit b380940

Please sign in to comment.