]> git.mxchange.org Git - flightgear.git/commitdiff
Improve fgfs startup logging.
authorThorstenB <brehmt@gmail.com>
Tue, 8 May 2012 20:47:32 +0000 (22:47 +0200)
committerThorstenB <brehmt@gmail.com>
Tue, 8 May 2012 20:47:32 +0000 (22:47 +0200)
Establish log-level very, very early during startup, so debug/info/warning
messages in the very early fgfs startup phase are also shown.

src/Main/options.cxx

index 9a5c84dd89f1982e9e6a03c160f3ada0c4b1531c..e8b39813ac1b739dd7ec721ceaafb829c0aec0d0 100644 (file)
@@ -1733,6 +1733,10 @@ void Options::init(int argc, char **argv, const SGPath& appDataPath)
   } // of arguments iteration
   p->insertGroupMarker(); // command line is one group
   
+  // establish log-level before anything else - otherwise it is not possible
+  // to show extra (debug/info/warning) messages for the start-up phase.
+  fgOptLogLevel(valueForOption("log-level").c_str());
+
 // then config files
   SGPath config;