Instead of printing the traceback, a `log.exception` should be called.