]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: http client: print curl error messages during curl failures
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 30 Jul 2018 11:35:14 +0000 (13:35 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 30 Jul 2018 11:35:14 +0000 (13:35 +0200)
commite8208bf8d5f02666a9fac6d9147a09267d7fc0b8
treee63c5522dfc133bb9934df65b719caee161ce80a
parentbb09f7ca767b99e9a6b2f91b05477c30c57738a0
rgw: http client: print curl error messages during curl failures

When curl fails, curl has a curl error code which can be useful to understand
the failure. Print this error message, as http status in these cases can likely
be 0, which makes it harder to debug. Example error message::

ERROR: msg->data.result=27 req_data->id=1 http_status=0
ERROR: curl error: Out of memory

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_http_client.cc