From cbb0e83ccc1cd0cdf0e162b6ee69e81d4e9f76e4 Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Wed, 1 Nov 2023 17:09:33 +0100
Subject: [PATCH] SDCH-4144: exception logging to find the root cause of the
 problem

---
 .../backend/services/feedback_handling/lib/feedback_handling.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SAS/TMSS/backend/services/feedback_handling/lib/feedback_handling.py b/SAS/TMSS/backend/services/feedback_handling/lib/feedback_handling.py
index 9a64461b7a3..6f61ac31f85 100644
--- a/SAS/TMSS/backend/services/feedback_handling/lib/feedback_handling.py
+++ b/SAS/TMSS/backend/services/feedback_handling/lib/feedback_handling.py
@@ -57,7 +57,7 @@ def read_feedback_message_and_process(old_qpid_frombuses, timeout: float=1):
                                 logger.info("received message from qpid queue='%s'",  old_qpid_frombus.receiver.source.address)
                             except AttributeError as e:
                                 # log errors from the parsing the qpid messages, see https://support.astron.nl/jira/projects/SDCH/queues/custom/81/SDCH-4144
-                                logger.exception("%s\mignoring unprocessable message with body:\n%s", str(e), str(msg.body))
+                                logger.exception("%s\mignoring unprocessable message with body:\n%s\n%s\n", str(e), str(msg), dir(msg), repr(msg))
                             finally:
                                 # always ack (even when the above AttributeError occurs), so we can continue with the next message
                                 old_qpid_frombus.ack(msg)
-- 
GitLab