Skip to content
Snippets Groups Projects
Commit e79b1ab2 authored by Art's avatar Art :lizard:
Browse files

Return back multiline exception logging

parent 5b6ba1c6
No related branches found
No related tags found
No related merge requests found
...@@ -164,7 +164,7 @@ def task(name): ...@@ -164,7 +164,7 @@ def task(name):
func_result = func(**task_kwargs) func_result = func(**task_kwargs)
except Exception as e: except Exception as e:
e_class = e.__class__.__qualname__ e_class = e.__class__.__qualname__
e_details = traceback.format_exc().replace("\n", " -- ") e_details = traceback.format_exc()
logger.error("Task {task_name} function raised {e_class}: {e}. {e_details}".format(**locals())) logger.error("Task {task_name} function raised {e_class}: {e}. {e_details}".format(**locals()))
func_error = "Task {task_name} raised {e_class} (see worker log for details).".format(**locals()) # sort of anonymized func_error = "Task {task_name} raised {e_class} (see worker log for details).".format(**locals()) # sort of anonymized
if properties.reply_to: if properties.reply_to:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment