Skip to content

Commit 4d3cbc6

Browse files
committed
FIX: Update logging in enable_debug_mode
1 parent 9eaa2a3 commit 4d3cbc6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nipype/utils/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,14 @@ def set_default_config(self):
147147

148148
def enable_debug_mode(self):
149149
"""Enables debug configuration"""
150+
from .. import logging
150151
self._config.set('execution', 'stop_on_first_crash', 'true')
151152
self._config.set('execution', 'remove_unnecessary_outputs', 'false')
152153
self._config.set('execution', 'keep_inputs', 'true')
153154
self._config.set('logging', 'workflow_level', 'DEBUG')
154155
self._config.set('logging', 'interface_level', 'DEBUG')
156+
self._config.set('logging', 'utils_level', 'DEBUG')
157+
logging.update_logging(self._config)
155158

156159
def set_log_dir(self, log_dir):
157160
"""Sets logging directory

0 commit comments

Comments
 (0)