]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: update debug log for curl error
authorJiffin Tony Thottan <jthottan@redhat.com>
Fri, 4 Dec 2020 10:44:31 +0000 (16:14 +0530)
committerJiffin Tony Thottan <jthottan@redhat.com>
Fri, 16 Apr 2021 17:28:39 +0000 (22:58 +0530)
The req_data->error_buf stores error returned by the curl command, add
that information to existing debug log.

Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
src/rgw/rgw_http_client.cc

index d90b904d4f3b67f532b1748625d20e0738e35d3a..dacf9fecadba60e04eff286472d8e4974ce772ec 100644 (file)
@@ -1265,7 +1265,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;
+            dout(20) << "ERROR: curl error: " << curl_easy_strerror((CURLcode)result) << " req_data->error_buf=" << req_data->error_buf << dendl;
            break;
         }
       }