Added debug log of all Metalink URLs with final priorities

pull/327/head
Dan Fandrich 2015-01-16 00:29:17 +01:00
parent d0c20e158e
commit 8c53e37c21
1 changed files with 4 additions and 0 deletions

View File

@ -246,6 +246,10 @@ Metalink2RequestGroup::createRequestGroup
auto entry = mes[0];
A2_LOG_INFO(fmt(MSG_METALINK_QUEUEING, entry->getPath().c_str()));
entry->reorderResourcesByPriority();
for(auto& mr : entry->resources) {
A2_LOG_DEBUG(fmt("priority=%d url=%s",
mr->priority, mr->url.c_str()));
}
std::vector<std::string> uris;
std::for_each(std::begin(entry->resources), std::end(entry->resources),
AccumulateNonP2PUri(uris));