by teddyh · 6y ago · 0 comments
Why not simply use logger.exception()?
try:
do_thing()
except Exception:
logger.exception("It broke.")
Called from within an exception handler, logger.exception() automatically includes exception information.I'm sure there are also good reasons :)