]> 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>
Tue, 29 Jun 2021 10:30:12 +0000 (16:00 +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>
(cherry picked from commit d88ce5100eed90584791b74085a8d864a3796fab)

src/rgw/rgw_http_client.cc

index 925a4e11fbfb18148e19e985e9da0baf422a2e7d..2b7675768d36ffc4600127eec32a0ee9d0ce6b74 100644 (file)
@@ -1215,7 +1215,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;
         }
       }