mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
[core] Add more logging to the downloader
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
6d0c52afcc
commit
ec1d2e6c82
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user