Skip to content
Snippets Groups Projects
Commit cbb0e83c authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SDCH-4144: exception logging to find the root cause of the problem

parent 37706f7b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment