Pass exc_info to log_exception.