diff options
author | Rob Austein <sra@hactrn.net> | 2017-04-23 18:29:03 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-04-23 18:29:03 -0400 |
commit | ffe5b3ad0ace1bda0a50373b4fc30bd702a62ec7 (patch) | |
tree | fc538d5528ffd3d637e0066079fd20dfb7b7b6c3 /cryptech_muxd | |
parent | 22a58216681df01d20cfa0a5cfc5c49d15e6c606 (diff) |
Log exit conditions
Diffstat (limited to 'cryptech_muxd')
-rwxr-xr-x | cryptech_muxd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cryptech_muxd b/cryptech_muxd index 5b458a4..8e57ef8 100755 --- a/cryptech_muxd +++ b/cryptech_muxd @@ -438,4 +438,8 @@ if __name__ == "__main__": try: tornado.ioloop.IOLoop.current().run_sync(main) except KeyboardInterrupt: - pass + logger.debug("Normal SIGTERM exit") + except: + logger.exception("Unhandled exception") + else: + logger.debug("Main loop exited") |