manager: clean exit on ctrl-c

This commit is contained in:
Adeeb Shihadeh 2024-01-10 19:37:10 -08:00
parent 1da08460cb
commit 3918039e29
1 changed files with 2 additions and 0 deletions

View File

@ -229,6 +229,8 @@ if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("got CTRL-C, exiting")
except Exception:
add_file_handler(cloudlog)
cloudlog.exception("Manager failed to start")