From: ehofman Date: Mon, 22 Sep 2003 11:35:21 +0000 (+0000) Subject: Clean up the output of the help and show-aircraft options a bit by setting log-level... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d93b79ae90494c08414539ef7c9707592aba1920;p=flightgear.git Clean up the output of the help and show-aircraft options a bit by setting log-level to alert prior to showing the output --- diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 446bedc8a..ce4b593d5 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -963,6 +963,7 @@ fgOptLogLevel( const char *arg ) fgSetString("/sim/logging/priority", arg); string priority = arg; + logbuf::set_log_classes(SG_ALL); if (priority == "bulk") { logbuf::set_log_priority(SG_BULK); } else if (priority == "debug") { @@ -1545,6 +1546,7 @@ fgParseArgs (int argc, char **argv) verbose = true; else if (result == FG_OPTIONS_SHOW_AIRCRAFT) { + fgOptLogLevel( "alert" ); SGPath path( globals->get_fg_root() ); path.append("Aircraft"); fgShowAircraft(path, true); @@ -1560,6 +1562,7 @@ fgParseArgs (int argc, char **argv) } if (help) { + fgOptLogLevel( "alert" ); fgUsage(verbose); exit(0); }