Commit 8e5b678f authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fix a bug with errors handling

parent 8fcdaac5
......@@ -956,7 +956,7 @@ class Workflow(threading.Thread):
logger = logging.getLogger( "wf." + str(self.id) )
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter( '## %(asctime)s :: %(message)s' )
if self.stderrfh is not None:
if self.stderrfh is None:
self.stderrfh = FileHandler(stderr, 'a')
self.stderrfh.setLevel(logging.ERROR)
self.stderrfh.setFormatter(formatter)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment