instrument exit states

pull/91/head
Adam Greig 2012-07-13 00:31:08 +01:00
rodzic 77d34ac037
commit 954461e94c
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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)