From d020cd74a6713cb9f567ed73a84704ecafdf1aed Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Sat, 16 Jul 2016 19:28:14 -0400 Subject: [PATCH] Some nice logging to see the message on which we failed. --- rida/scheduler/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rida/scheduler/main.py b/rida/scheduler/main.py index 1e2dc87a..f3d47bec 100644 --- a/rida/scheduler/main.py +++ b/rida/scheduler/main.py @@ -33,6 +33,7 @@ proper scheduling component builds in the supported build systems. import inspect import logging import os +import pprint import threading import time @@ -117,6 +118,7 @@ class Messaging(threading.Thread): self.process_message(msg) except Exception: log.exception("Failed while handling %r" % msg['msg_id']) + log.info(pprint.pformat(msg)) def process_message(self, msg): log.debug("received %r, %r" % (msg['msg_id'], msg['topic']))