Skip to content
Snippets Groups Projects
Commit 8bd6d820 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Trace module is conditionally imported.

parent 08053ee4
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,6 @@ import importlib
import threading
import subprocess
import fsl.tools as tools
import fsl.utils.settings as fslsettings
......@@ -496,7 +495,9 @@ def _parseTopLevelArgs(argv, allTools):
# things if its logging level has been
# set to DEBUG, so we import it now so
# it can set itself up.
import fsl.utils.trace
traceLogger = logging.getLogger('fsl.utils.trace')
if traceLogger.getEffectiveLevel() <= logging.DEBUG:
import fsl.utils.trace
fslTool = _loadFSLTool(namespace.tool)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment