logging.error and logging.debug -> logging.exception