Log number of items loaded from input file

pull/709/merge
Nils Maier 2016-07-18 23:49:32 +02:00
parent 1ab2b99692
commit b6d9e7a01f
1 changed files with 4 additions and 0 deletions

View File

@ -305,6 +305,10 @@ Context::Context(bool standalone, int argc, char** argv, const KeyVals& options)
global::cout()->printf("%s\n", MSG_NO_FILES_TO_DOWNLOAD);
}
else {
if (!requestGroups.empty()) {
A2_LOG_NOTICE(fmt("Downloading %" PRId64 " items",
static_cast<uint64_t>(requestGroups.size())));
}
reqinfo = std::make_shared<MultiUrlRequestInfo>(std::move(requestGroups),
op, uriListParser);
}