From ae02fe7816f5da4e53671a031a2f38ea5fd269fb Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Mon, 30 Mar 2015 13:21:26 -0400 Subject: [PATCH] Log traceback in analyzer status_reporter.py exception handler --- python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py b/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py index 9c2d52a31..23c6175c3 100644 --- a/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py +++ b/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py @@ -129,6 +129,7 @@ def send_http_request(picklable_request, retry_queue): retry_queue.append(picklable_request) # Retry it later except Exception as e: logging.error("HTTP request failed with unhandled exception. %s" % str(e)) + logging.error(traceback.format_exc()) # Don't put the request into the retry queue, just give up on this one. # I'm doing this to protect against us getting some pathological request # that breaks our code. I don't want us pickling data that potentially