koaning / calmcode-feedback

A repo to collect issues with calmcode.io
16 stars 0 forks source link

Python logging.exception #60

Open memco opened 3 years ago

memco commented 3 years ago

In https://calmcode.io/logging/files.html videos 4 and 5 I think it would be helpful to mention that there is also a logger.exception function which will automatically set the level to error and include the trace back. It is slightly cleaner and you don’t need to catch any specific exception to make it work.

koaning commented 3 years ago

I've never used that functionality actually. I'll try it out when I get the chance. Should I agree on the utility, I'll investigate a way to add it.