File tree 2 files changed +17
-8
lines changed
2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -237,16 +237,23 @@ Debug configuration
237
237
238
238
To enable debug mode, one can insert the following lines::
239
239
240
- from nipype import config, logging
240
+ from nipype import config
241
241
config.enable_debug_mode()
242
- logging.update_logging(config)
243
242
244
243
In this mode the following variables are set::
245
244
246
245
config.set('execution', 'stop_on_first_crash', 'true')
247
246
config.set('execution', 'remove_unnecessary_outputs', 'false')
247
+ config.set('execution', 'keep_inputs', 'true')
248
248
config.set('logging', 'workflow_level', 'DEBUG')
249
249
config.set('logging', 'interface_level', 'DEBUG')
250
+ config.set('logging', 'utils_level', 'DEBUG')
251
+
252
+ The primary loggers (``workflow ``, ``interface `` and ``utils ``) are also reset
253
+ to level ``DEBUG ``.
254
+ You may wish to adjust these manually using::
250
255
256
+ from nipype import logging
257
+ logging.getLogger(<logger>).setLevel(<level>)
251
258
252
259
.. include :: ../links_names.txt
Original file line number Diff line number Diff line change @@ -20,15 +20,17 @@ performance issues.
20
20
from nipype import config
21
21
config.enable_debug_mode()
22
22
23
- as the first import of your nipype script. To enable debug logging use::
24
-
25
- from nipype import logging
26
- logging.update_logging(config)
23
+ as the first import of your nipype script.
27
24
28
25
.. note::
29
26
30
- Turning on debug will rerun your workflows and will rerun them after debugging
31
- is turned off.
27
+ Turning on debug will rerun your workflows and will rerun them after
28
+ debugging is turned off.
29
+
30
+ Turning on debug mode will also override log levels specified elsewhere,
31
+ such as in the nipype configuration.
32
+ ``workflow``, ``interface`` and ``utils`` loggers will all be set to
33
+ level ```DEBUG``.
32
34
33
35
#. There are several configuration options that can help with debugging. See
34
36
:ref: `config_file ` for more details::
You can’t perform that action at this time.
0 commit comments