From 7699f48bd4c0d90942109136a9089e2aa98dbf82 Mon Sep 17 00:00:00 2001
From: Dennis Ahrens <dennis.ahrens@hs-hannover.de>
Date: Fri, 2 Feb 2018 13:10:08 +0100
Subject: [PATCH] Be verbose in error log if client breaks

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

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