Log curl result integer code, along with strerror.

This commit is contained in:
kishorenc 2020-08-13 07:51:21 +05:30
parent f54bc8a4b3
commit 5b618ac06c

View File

@ -82,7 +82,7 @@ long HttpClient::perform_curl(CURL *curl, std::map<std::string, std::string>& re
CURLcode res = curl_easy_perform(curl);
if (res != CURLE_OK) {
LOG(ERROR) << "CURL failed: " << curl_easy_strerror(res);
LOG(ERROR) << "CURL failed. Code: " << res << ", strerror: " << curl_easy_strerror(res);
curl_easy_cleanup(curl);
return 500;
}