Преглед на файлове

Log number of items loaded from input file

Nils Maier преди 9 години
родител
ревизия
b6d9e7a01f
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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);
   }