Hacker News new | past | comments | ask | show | jobs | submit login

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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: