Sfoglia il codice sorgente

Log number of items loaded from input file

Nils Maier 9 anni fa
parent
commit
b6d9e7a01f
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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);
   }