Show output from convert_imageset tool
authorLuke Yeager <lyeager@nvidia.com>
Wed, 2 Sep 2015 00:20:37 +0000 (17:20 -0700)
committerLuke Yeager <lyeager@nvidia.com>
Wed, 2 Sep 2015 00:20:37 +0000 (17:20 -0700)
tools/convert_imageset.cpp

index 816a91f..aad1f1f 100644 (file)
@@ -44,6 +44,8 @@ DEFINE_string(encode_type, "",
 
 int main(int argc, char** argv) {
   ::google::InitGoogleLogging(argv[0]);
+  // Print output to stderr (while still logging)
+  FLAGS_alsologtostderr = 1;
 
 #ifndef GFLAGS_GFLAGS_H_
   namespace gflags = google;
@@ -140,13 +142,13 @@ int main(int argc, char** argv) {
       // Commit db
       txn->Commit();
       txn.reset(db->NewTransaction());
-      LOG(ERROR) << "Processed " << count << " files.";
+      LOG(INFO) << "Processed " << count << " files.";
     }
   }
   // write the last batch
   if (count % 1000 != 0) {
     txn->Commit();
-    LOG(ERROR) << "Processed " << count << " files.";
+    LOG(INFO) << "Processed " << count << " files.";
   }
   return 0;
 }