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
diff options
context:
space:
mode:
Diffstat (limited to 'intern/libmv')
-rw-r--r--intern/libmv/intern/logging.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/intern/libmv/intern/logging.cc b/intern/libmv/intern/logging.cc
index 350be29d4db..a8c7e93880d 100644
--- a/intern/libmv/intern/logging.cc
+++ b/intern/libmv/intern/logging.cc
@@ -35,16 +35,13 @@ static bool is_verbosity_set() {
void libmv_initLogging(const char* argv0) {
using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
- // Make it so ERROR messages are always print into console.
- char severity_fatal[32];
- snprintf(severity_fatal, sizeof(severity_fatal), "%d",
- google::GLOG_ERROR);
google::InitGoogleLogging(argv0);
+ SetCommandLineOption("logtostderr", "1");
if (!is_verbosity_set()) {
SetCommandLineOption("v", "0");
}
- SetCommandLineOption("stderrthreshold", severity_fatal);
- SetCommandLineOption("minloglevel", severity_fatal);
+ SetCommandLineOption("stderrthreshold", "0");
+ SetCommandLineOption("minloglevel", "0");
}
void libmv_startDebugLogging(void) {
@@ -53,7 +50,7 @@ void libmv_startDebugLogging(void) {
if (!is_verbosity_set()) {
SetCommandLineOption("v", "2");
}
- SetCommandLineOption("stderrthreshold", "1");
+ SetCommandLineOption("stderrthreshold", "0");
SetCommandLineOption("minloglevel", "0");
}