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

Log additional exception info into debug (RPCError exceptions must be expected)

parent 5d66db92
Branches
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ def run(_task_name, **kwargs):
properties=pika.BasicProperties()
)
except Exception as e:
logger.debug(traceback.format_exc())
logger.error("{}: {}".format(e.__class__.__name__, str(e)))
raise RPCMessageQueueError(e)
......@@ -109,7 +110,7 @@ def rpc(_task_name, **kwargs):
channel.start_consuming()
channel.close() # after stopped consuming by either of the callbacks
except Exception as e:
logger.error(traceback.format_exc())
logger.debug(traceback.format_exc())
logger.error("{}: {}".format(e.__class__.__name__, str(e)))
exception = RPCMessageQueueError(e)
# done, return the result or indicate a problem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment