]> git.mxchange.org Git - flightgear.git/commitdiff
Quiet: reduce log-level of various things from INFO to DEBUG or BULK, and tune the...
authorjmt <jmt>
Mon, 15 Feb 2010 23:57:56 +0000 (23:57 +0000)
committerTim Moore <timoore33@gmail.com>
Wed, 17 Feb 2010 06:44:26 +0000 (07:44 +0100)
Part of original commit that only applys to master branch.

src/Autopilot/xmlauto.cxx

index d37164a721a06103b4f1611541cfa66040c61533..119083f66c7738b29b9a38d3ff8df91c5bb7939a 100644 (file)
@@ -1002,13 +1002,13 @@ void FGXMLAutopilotGroup::init()
                 continue;
             }        
         } catch (const sg_exception& e) {
-            SG_LOG( SG_ALL, SG_ALERT, "Failed to load autopilot configuration: "
+            SG_LOG( SG_AUTOPILOT, SG_ALERT, "Failed to load autopilot configuration: "
                     << config.str() << ":" << e.getMessage() );
             delete ap;
             continue;
         }
 
-        SG_LOG( SG_ALL, SG_INFO, "adding  autopilot subsystem " << apName );
+        SG_LOG( SG_AUTOPILOT, SG_INFO, "adding  autopilot subsystem " << apName );
         set_subsystem( apName, ap );
         _autopilotNames.push_back( apName );
     }
@@ -1053,7 +1053,7 @@ bool FGXMLAutopilot::build( SGPropertyNode_ptr config_props ) {
         node = config_props->getChild(i);
         string name = node->getName();
         // cout << name << endl;
-        SG_LOG( SG_ALL, SG_INFO, "adding  autopilot component " << name );
+        SG_LOG( SG_AUTOPILOT, SG_BULK, "adding  autopilot component " << name );
         if ( name == "pid-controller" ) {
             components.push_back( new FGPIDController( node ) );
         } else if ( name == "pi-simple-controller" ) {
@@ -1062,9 +1062,8 @@ bool FGXMLAutopilot::build( SGPropertyNode_ptr config_props ) {
             components.push_back( new FGPredictor( node ) );
         } else if ( name == "filter" ) {
             components.push_back( new FGDigitalFilter( node ) );
-//        } else {
-//            SG_LOG( SG_ALL, SG_ALERT, "Unknown top level section: " 
-//                    << name );
+        } else {
+            SG_LOG( SG_AUTOPILOT, SG_WARN, "Unknown top level autopilot section: " << name );
 //            return false;
         }
     }