mirror of
https://github.com/typesense/typesense.git
synced 2025-05-21 06:02:26 +08:00
Log curl result integer code, along with strerror.
This commit is contained in:
parent
f54bc8a4b3
commit
5b618ac06c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user