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

Change logging level of task raising an exception

(Tasks are expected to raise exceptions often, thus it is should not be logged as error)
parent e79b1ab2
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ def task(name):
except Exception as e:
e_class = e.__class__.__qualname__
e_details = traceback.format_exc()
logger.error("Task {task_name} function raised {e_class}: {e}. {e_details}".format(**locals()))
logger.info("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
if properties.reply_to:
try:
......
......@@ -13,7 +13,7 @@ setup(
packages=find_packages(),
include_package_data=True,
license='BSD',
description='Minimal RPC with pika, 100.02% skookum.',
description='Minimal RPC with pika.',
long_description=README,
url='https://lab.it.hs-hannover.de/django/pikatasks',
author='Art Lukyanchyk',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment