Commit b0cf01d8 authored by Gerald Salin's avatar Gerald Salin
Browse files

add logging

parent 67ba07d9
......@@ -174,6 +174,7 @@ class Exclude(LinkRule):
if exclude in self.user_args and self.user_args[exclude] is not None and self.user_args[exclude] and \
self.user_args[exclude] != self.get_parameter(exclude).default:
# The target is found, is not None and is not False
print(self.user_args)
self.error("Parameters '" + self.parameter_name + "' and '" + exclude + "' are mutually excluded")
......
......@@ -507,8 +507,11 @@ class Workflow(threading.Thread):
return gr
def delete(self):
logging.getLogger("wf." + str(self.id)).debug("delete. Trying to delete " + self.directory)
if self.get_status() in [self.STATUS_COMPLETED, self.STATUS_FAILED, self.STATUS_ABORTED]:
logging.getLogger("wf." + str(self.id)).debug("status is OK for deletetion" )
utils.robust_rmtree(self.directory)
logging.getLogger("wf." + str(self.id)).debug("workflow deleted" )
@staticmethod
def config_parser(arg_lines):
......@@ -960,6 +963,7 @@ class Workflow(threading.Thread):
"""
Only require for Threading
"""
try:
# if this is the first time the workflow run
if self.__step == None:
......@@ -1021,6 +1025,7 @@ class Workflow(threading.Thread):
self.__print_outputs(False)
print("")
print(self.get_summary())
except:
self._postprocess_status = self.STATUS_FAILED
raise
......
Supports Markdown
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