[core] Add more logging to the downloader

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-07-02 21:17:26 +07:00
committed by Konstantin Pastbin
parent 6d0c52afcc
commit ec1d2e6c82
9 changed files with 29 additions and 10 deletions

View File

@@ -24,6 +24,7 @@ int64_t DoPing(std::string const & url)
return kInvalidPing;
}
LOG(LDEBUG, ("Pinging server", url));
platform::HttpClient request(url);
request.SetHttpMethod("HEAD");
request.SetTimeout(kTimeoutInSeconds);
@@ -34,7 +35,7 @@ int64_t DoPing(std::string const & url)
}
else
{
LOG(LWARNING, ("Request to server", url, "failed with code =", request.ErrorCode(), "; redirection =", request.WasRedirected()));
LOG(LWARNING, ("Ping to server", url, "failed with code =", request.ErrorCode(), "; wasRedirected =", request.WasRedirected()));
}
return kInvalidPing;