forked from Mirrorlandia_minetest/minetest
Log timeout when a httpfetch times out
This commit is contained in:
parent
9ec40ce8e9
commit
e02bf9fb1a
@ -387,8 +387,11 @@ const HTTPFetchResult * HTTPFetchOngoing::complete(CURLcode res)
|
||||
}
|
||||
|
||||
if (res != CURLE_OK) {
|
||||
errorstream << "HTTPFetch for " << request.url << " failed ("
|
||||
<< curl_easy_strerror(res) << ")" << std::endl;
|
||||
errorstream << "HTTPFetch for " << request.url << " failed: "
|
||||
<< curl_easy_strerror(res);
|
||||
if (result.timeout)
|
||||
errorstream << " (timeout = " << request.timeout << "ms)" << std::endl;
|
||||
errorstream << std::endl;
|
||||
} else if (result.response_code >= 400) {
|
||||
errorstream << "HTTPFetch for " << request.url
|
||||
<< " returned response code " << result.response_code
|
||||
|
Loading…
Reference in New Issue
Block a user