Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pR0Ps
on July 2, 2022
|
parent
|
context
|
favorite
| on:
Logging in Python like a pro
You can actually do this with any level of log message by passing `exc_info=True` to it. This is super useful in cases where you want to log the exception context, but don't need to be at a high logging level.
Ex:
logger.debug("A non-critical exception occurred", exc_info=True)
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Ex: