@@ -376,17 +376,17 @@ def stderr_stdout_log_path(
376
376
except OSError as e :
377
377
if e .errno == 2 :
378
378
if runtime :
379
- _logger .error ("'%s' not found: %s" , runtime [0 ], str (e ))
379
+ _logger .error ("'%s' not found: %s" , runtime [0 ], str (e ), exc_info = runtimeContext . debug )
380
380
else :
381
- _logger .error ("'%s' not found: %s" , self .command_line [0 ], str (e ))
381
+ _logger .error ("'%s' not found: %s" , self .command_line [0 ], str (e ), exc_info = runtimeContext . debug )
382
382
else :
383
- _logger .exception ("Exception while running job" )
383
+ _logger .exception ("Exception while running job: %s" , str ( e ), exc_info = runtimeContext . debug )
384
384
processStatus = "permanentFail"
385
385
except WorkflowException as err :
386
- _logger .error ("[job %s] Job error:\n %s" , self .name , str (err ))
386
+ _logger .error ("[job %s] Job error:\n %s" , self .name , str (err ), exc_info = runtimeContext . debug )
387
387
processStatus = "permanentFail"
388
- except Exception :
389
- _logger .exception ("Exception while running job" )
388
+ except Exception as err :
389
+ _logger .exception ("Exception while running job: %s." , str ( err ), exc_info = runtimeContext . debug )
390
390
processStatus = "permanentFail"
391
391
if (
392
392
runtimeContext .research_obj is not None
@@ -795,7 +795,7 @@ def run(
795
795
)
796
796
except Exception as err :
797
797
container = "Singularity" if runtimeContext .singularity else "Docker"
798
- _logger .debug ("%s error" , container , exc_info = True )
798
+ _logger .debug ("%s error" , container , exc_info = runtimeContext . debug )
799
799
if docker_is_req :
800
800
raise UnsupportedRequirement (
801
801
f"{ container } is required to run this tool: { str (err )} "
0 commit comments