Libmv: Make ERROR a default printing severity

This commit is contained in:
Sergey Sharybin 2017-04-28 16:47:35 +02:00
parent c648ddb9a1
commit b46aad19c0

@ -30,10 +30,10 @@
void libmv_initLogging(const char* argv0) { void libmv_initLogging(const char* argv0) {
using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption; using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
// Make it so FATAL messages are always print into console. // Make it so ERROR messages are always print into console.
char severity_fatal[32]; char severity_fatal[32];
snprintf(severity_fatal, sizeof(severity_fatal), "%d", snprintf(severity_fatal, sizeof(severity_fatal), "%d",
google::GLOG_FATAL); google::GLOG_ERROR);
google::InitGoogleLogging(argv0); google::InitGoogleLogging(argv0);
SetCommandLineOption("logtostderr", "1"); SetCommandLineOption("logtostderr", "1");
SetCommandLineOption("v", "0"); SetCommandLineOption("v", "0");