[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

@@ -16,6 +16,8 @@ void MapFilesDownloaderWithPing::GetMetaConfig(MetaConfigCallback const & callba
CHECK(!metaConfig.m_serversList.empty(), ());
// Sort the list of servers by latency.
/// @todo(pastk:: actually the sort order is used only in MapFilesDownloader::DownloadAsString()
/// to get e.g. countries.txt but this code is not enabled at the moment.
auto const sorted = Pinger::ExcludeUnavailableAndSortEndpoints(metaConfig.m_serversList);
// Keep the original list if all servers are unavailable.
if (!sorted.empty())