From fc33129300c7ea8553e651ed74be0c7d445a2655 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Thu, 14 Apr 2016 18:22:18 +0200 Subject: [PATCH] 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 --- src/rgw/rgw_http_client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3