def __log_error(self, task, stop_on_exception):
logutil=module_logger.error if stop_on_exception else module_logger.warning
err_exception, pickle_trace=task.result
err_trace=pickle.loads(pickle_trace)
logutil('Exception in run_action: \n {}'.format(task,)) #)
logutil("%s" % (repr(err_exception), ))
trace='\n'.join([line.rstrip() for line in err_trace])
if trace: logutil("%s" % (trace, ) )
评论列表
文章目录