Commit 4e866d42 authored by LaurentBerger's avatar LaurentBerger

solve issue #1155

parent 3b01eaa3
This diff is collapsed.
......@@ -88,10 +88,13 @@ struct libmv_Reconstruction {
void libmv_initLogging(const char* argv0) {
// Make it so FATAL messages are always print into console.
char severity_fatal[32];
static int initLog=0;
snprintf(severity_fatal, sizeof(severity_fatal), "%d",
GLOG_FATAL);
InitGoogleLogging(argv0);
if (!initLog)
InitGoogleLogging(argv0);
initLog=1;
SetCommandLineOption("logtostderr", "1");
SetCommandLineOption("v", "0");
SetCommandLineOption("stderrthreshold", severity_fatal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment