+
+def config_stderr_handler(line, conf_info):
+ """
+ Processes each line of output from GOAT
+ and stores useful information using the logging module
+
+ Loads useful information into conf_info as well, for future
+ use outside the function.
+
+ returns RUN_ABORT upon detecting failure; True on success message
+ """
+
+ if s_species_dir_err.search(line):
+ logging.error(line)
+ return RUN_ABORT
+ elif s_stderr_taskcomplete.search(line):
+ logging.info('Configure step successful (from: stderr)')
+ return True
+ else:
+ logging.debug('STDERR: How to handle: %s' % (line))
+
+ return False
+
+#FIXME: Temperary hack
+f = open('pipeline_run.log', 'w')
+
+def pipeline_handler(line, conf_info):
+ """
+ Processes each line of output from running the pipeline
+ and stores useful information using the logging module
+
+ Loads useful information into conf_info as well, for future
+ use outside the function.
+
+ returns True if found condition that signifies success.
+ """
+
+ f.write(line + '\n')
+
+ return True
+
+