From 954461e94c2f5dfb71a5af59937afac8fa4df7b0 Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Fri, 13 Jul 2012 00:31:08 +0100 Subject: [PATCH] instrument exit states --- predict.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/predict.py b/predict.py index 6519f71..91da21d 100755 --- a/predict.py +++ b/predict.py @@ -589,8 +589,10 @@ if __name__ == '__main__': log.debug("Exit: " + repr(e)) if e.code != 0 and progress_f: update_progress(error="Unknown error exit") + statsd.increment("unknown_error_exit") raise except Exception as e: + statsd.increment("uncaught_exception") log.exception("Uncaught exception") (exc_type, exc_value, discard_tb) = sys.exc_info() exc_tb = traceback.format_exception_only(exc_type, exc_value)