Add `exc_info=True` to the `logger.error()`