Skip to content
Snippets Groups Projects
Commit 73c09624 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Add trace in case of execption was raised in rpc

parent 7699f48b
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,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.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