1
0
Fork 0

Clean up the output of the help and show-aircraft options a bit by setting log-level to alert prior to showing the output

This commit is contained in:
ehofman 2003-09-22 11:35:21 +00:00
parent 591cfcedfb
commit d93b79ae90

View file

@ -963,6 +963,7 @@ fgOptLogLevel( const char *arg )
fgSetString("/sim/logging/priority", arg); fgSetString("/sim/logging/priority", arg);
string priority = arg; string priority = arg;
logbuf::set_log_classes(SG_ALL);
if (priority == "bulk") { if (priority == "bulk") {
logbuf::set_log_priority(SG_BULK); logbuf::set_log_priority(SG_BULK);
} else if (priority == "debug") { } else if (priority == "debug") {
@ -1545,6 +1546,7 @@ fgParseArgs (int argc, char **argv)
verbose = true; verbose = true;
else if (result == FG_OPTIONS_SHOW_AIRCRAFT) { else if (result == FG_OPTIONS_SHOW_AIRCRAFT) {
fgOptLogLevel( "alert" );
SGPath path( globals->get_fg_root() ); SGPath path( globals->get_fg_root() );
path.append("Aircraft"); path.append("Aircraft");
fgShowAircraft(path, true); fgShowAircraft(path, true);
@ -1560,6 +1562,7 @@ fgParseArgs (int argc, char **argv)
} }
if (help) { if (help) {
fgOptLogLevel( "alert" );
fgUsage(verbose); fgUsage(verbose);
exit(0); exit(0);
} }