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

Be verbose in error log if client breaks

parent 5bb28ddd
No related branches found
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.error("{}: {}".format(e.__class__.__name__, str(e)))
raise RPCMessageQueueError(e)
......@@ -103,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("{}: {}".format(e.__class__.__name__, str(e)))
exception = RPCMessageQueueError(e)
# done, return the result or indicate a problem
if exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment