We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1dabba commit 66f420fCopy full SHA for 66f420f
fmriprep/config.py
@@ -604,9 +604,10 @@ def init(cls):
604
"""
605
from nipype import config as ncfg
606
607
- _handler = logging.StreamHandler(stream=sys.stdout)
608
- _handler.setFormatter(logging.Formatter(fmt=cls._fmt, datefmt=cls._datefmt))
609
- cls.cli.addHandler(_handler)
+ if not cls.cli.hasHandlers():
+ _handler = logging.StreamHandler(stream=sys.stdout)
+ _handler.setFormatter(logging.Formatter(fmt=cls._fmt, datefmt=cls._datefmt))
610
+ cls.cli.addHandler(_handler)
611
cls.default.setLevel(execution.log_level)
612
cls.cli.setLevel(execution.log_level)
613
cls.interface.setLevel(execution.log_level)
0 commit comments