]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: http_client, print curl_easy_perform status code as well
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 14 Apr 2016 16:22:18 +0000 (18:22 +0200)
committerAbhishek Lekshmanan <alekshmanan@suse.com>
Thu, 14 Apr 2016 19:00:53 +0000 (21:00 +0200)
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 <abhishek@suse.com>
src/rgw/rgw_http_client.cc

index b15ab666b6a350dc511e6eb768de90793e08b406..49e30ebc6514f246cfd0cfce2b2d8a770366774d 100644 (file)
@@ -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);