Skip to content

Commit

Permalink
Show output from convert_imageset tool
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeyeager committed Sep 2, 2015
1 parent 2d55e31 commit 6ca0ab6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/convert_imageset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

0 comments on commit 6ca0ab6

Please sign in to comment.