]> git.mxchange.org Git - flightgear.git/commitdiff
Clean up the output of the help and show-aircraft options a bit by setting log-level...
authorehofman <ehofman>
Mon, 22 Sep 2003 11:35:21 +0000 (11:35 +0000)
committerehofman <ehofman>
Mon, 22 Sep 2003 11:35:21 +0000 (11:35 +0000)
src/Main/options.cxx

index 446bedc8adfb89b09f259319cdf3690c3d0d51d4..ce4b593d5dfde68f949947a70d37ec4e26d8ee6e 100644 (file)
@@ -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);
     }