Instead of the excess `logger.error(...)` above, add `, exc_info=True` here.