From: ThorstenB Date: Tue, 8 May 2012 20:47:32 +0000 (+0200) Subject: Improve fgfs startup logging. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b7b0f16a8ff26cbeaed0e71f6c7936001853bf3;p=flightgear.git Improve fgfs startup logging. Establish log-level very, very early during startup, so debug/info/warning messages in the very early fgfs startup phase are also shown. --- diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 9a5c84dd8..e8b39813a 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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;