Explorar o código

Log number of items loaded from input file

Nils Maier %!s(int64=9) %!d(string=hai) anos
pai
achega
b6d9e7a01f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/Context.cc

+ 4 - 0
src/Context.cc

@@ -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);
   }