print handled exceptions.
This commit is contained in:
parent
b1b487bc48
commit
83137ba0a0
|
@ -132,6 +132,7 @@ def register_async_tasks(app):
|
|||
def register_exception_handlers(app):
|
||||
@app.errorhandler(Exception)
|
||||
async def basic_error(err):
|
||||
print("handled error", traceback.format_exc())
|
||||
etype, value, tb = sys.exc_info()
|
||||
traceback.print_exception(etype, err, tb)
|
||||
exc = traceback.format_exc()
|
||||
|
|
Loading…
Reference in New Issue
Block a user