From: Abhishek Lekshmanan Date: Thu, 14 Apr 2016 16:22:18 +0000 (+0200) Subject: rgw: http_client, print curl_easy_perform status code as well X-Git-Tag: v11.0.0~593^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc33129300c7ea8553e651ed74be0c7d445a2655;p=ceph.git rgw: http_client, print curl_easy_perform status code as well This helps during debugging as exact curl error code can help debug where the request broke down a bit easier Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_http_client.cc b/src/rgw/rgw_http_client.cc index b15ab666b6a3..49e30ebc6514 100644 --- a/src/rgw/rgw_http_client.cc +++ b/src/rgw/rgw_http_client.cc @@ -121,7 +121,7 @@ int RGWHTTPClient::process(const char *method, const char *url) CURLcode status = curl_easy_perform(curl_handle); if (status) { - dout(0) << "curl_easy_perform returned error: " << error_buf << dendl; + dout(0) << "curl_easy_perform returned status " << status << " error: " << error_buf << dendl; ret = -EINVAL; } curl_easy_getinfo(curl_handle, CURLINFO_RESPONSE_CODE, &http_status);