From d93b79ae90494c08414539ef7c9707592aba1920 Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 22 Sep 2003 11:35:21 +0000 Subject: [PATCH] Clean up the output of the help and show-aircraft options a bit by setting log-level to alert prior to showing the output --- src/Main/options.cxx | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.5