From 6ca0ab66077c578dff14aa775858035b2a69fed6 Mon Sep 17 00:00:00 2001 From: Luke Yeager Date: Tue, 1 Sep 2015 17:20:37 -0700 Subject: [PATCH] Show output from convert_imageset tool --- tools/convert_imageset.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/convert_imageset.cpp b/tools/convert_imageset.cpp index 816a91f..aad1f1f 100644 --- a/tools/convert_imageset.cpp +++ b/tools/convert_imageset.cpp @@ -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; } -- 2.7.4