1
0
Fork 0

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.
This commit is contained in:
ThorstenB 2012-05-08 22:47:32 +02:00
parent ea2c73e8b5
commit 0b7b0f16a8

View 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;