Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-04-15 14:02:33 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-04-15 14:02:33 +0400
commit79ca1bd0041b05c5e15c87d381ebc721945a07e1 (patch)
treecce8ecdeaedbe7f5290212e7d9388e1719363e61 /extern
parentf294b3b082ee239df54e3fcd49d6f5611fdeee72 (diff)
Make it so FATAL messages from libmv are print to the console
even when --debug-libmv is not passed via command line.
Diffstat (limited to 'extern')
-rw-r--r--extern/libmv/libmv-capi.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/extern/libmv/libmv-capi.cpp b/extern/libmv/libmv-capi.cpp
index eccf6fb7cb6..b9ca4c12535 100644
--- a/extern/libmv/libmv-capi.cpp
+++ b/extern/libmv/libmv-capi.cpp
@@ -77,11 +77,16 @@ typedef struct libmv_Features {
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)