Merge pull request #23318 from theanalyst/wip-curl-errstring

rgw: http client: print curl error messages during curl failures

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Yuri Weinstein 2018-11-19 08:47:27 -08:00 committed by GitHub
commit 3a77ff454d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1154,6 +1154,7 @@ void *RGWHTTPManager::reqs_thread_entry()
<< cct->_conf->rgw_curl_low_speed_limit << " Bytes per second during " << cct->_conf->rgw_curl_low_speed_time << " seconds." << dendl;
default:
dout(20) << "ERROR: msg->data.result=" << result << " req_data->id=" << id << " http_status=" << http_status << dendl;
dout(20) << "ERROR: curl error: " << curl_easy_strerror((CURLcode)result) << dendl;
break;
}
}