From 0b7b0f16a8ff26cbeaed0e71f6c7936001853bf3 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Tue, 8 May 2012 22:47:32 +0200 Subject: [PATCH] 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. --- src/Main/options.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5