Use logging.exception whenever possible