From 73c0962440c62f7056c77e9f92e5d6043e998262 Mon Sep 17 00:00:00 2001
From: Dennis Ahrens <dennis.ahrens@hs-hannover.de>
Date: Mon, 5 Feb 2018 17:13:58 +0100
Subject: [PATCH] Add trace in case of execption was raised in rpc

---
 pikatasks/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pikatasks/__init__.py b/pikatasks/__init__.py
index ab74302..f2c0112 100644
--- a/pikatasks/__init__.py
+++ b/pikatasks/__init__.py
@@ -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
-- 
GitLab