[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56057] trunk/blender/extern/libmv/ libmv-capi.cpp: Make it so FATAL messages from libmv are print to the console

Sergey Sharybin sergey.vfx at gmail.com
Mon Apr 15 12:02:34 CEST 2013


Revision: 56057
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56057
Author:   nazgul
Date:     2013-04-15 10:02:33 +0000 (Mon, 15 Apr 2013)
Log Message:
-----------
Make it so FATAL messages from libmv are print to the console
even when --debug-libmv is not passed via command line.

Modified Paths:
--------------
    trunk/blender/extern/libmv/libmv-capi.cpp

Modified: trunk/blender/extern/libmv/libmv-capi.cpp
===================================================================
--- trunk/blender/extern/libmv/libmv-capi.cpp	2013-04-15 08:43:17 UTC (rev 56056)
+++ trunk/blender/extern/libmv/libmv-capi.cpp	2013-04-15 10:02:33 UTC (rev 56057)
@@ -77,11 +77,16 @@
 
 void libmv_initLogging(const char *argv0)
 {
+	/* Make it so FATAL messages are always print into console */
+	char severity_fatal[32];
+	snprintf(severity_fatal, sizeof(severity_fatal), "%d",
+	         google::GLOG_FATAL);
+
 	google::InitGoogleLogging(argv0);
 	google::SetCommandLineOption("logtostderr", "1");
 	google::SetCommandLineOption("v", "0");
-	google::SetCommandLineOption("stderrthreshold", "7");
-	google::SetCommandLineOption("minloglevel", "7");
+	google::SetCommandLineOption("stderrthreshold", severity_fatal);
+	google::SetCommandLineOption("minloglevel", severity_fatal);
 }
 
 void libmv_startDebugLogging(void)




More information about the Bf-blender-cvs mailing list