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:
parent
ea2c73e8b5
commit
0b7b0f16a8
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue