Log startup exceptions
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
.venv
|
.venv
|
||||||
|
env/
|
||||||
pip-selfcheck.json
|
pip-selfcheck.json
|
||||||
*.pyc
|
*.pyc
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|||||||
@@ -150,3 +150,6 @@ with appserv.run(config["appservice.hostname"], config["appservice.port"]) as st
|
|||||||
asyncio.gather(*[user.stop() for user in User.by_tgid.values()], loop=loop))
|
asyncio.gather(*[user.stop() for user in User.by_tgid.values()], loop=loop))
|
||||||
log.debug("Clients stopped, shutting down")
|
log.debug("Clients stopped, shutting down")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
except Exception as e:
|
||||||
|
log.exception("Unexpected error")
|
||||||
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user