You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "./download.py", line 201, in <module>
asyncio.run(xxx())
File "/usr/lib64/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "./download.py", line 199, in xxx
x = 3 / 0
ZeroDivisionError: division by zero
But if i catch the exception and log it from the function, i get pretty traceback, including values of variables:
I also added support for decorating generator functions. It should also be possible to decorate asynchronous generators, but I prefer to better understand all the async / await stuff before implementing it.
loguru v0.2.5
Minimal example:
Prints just plain traceback:
But if i catch the exception and log it from the function, i get pretty traceback, including values of variables:
Prints:
The text was updated successfully, but these errors were encountered: