]> git.mxchange.org Git - flightgear.git/commitdiff
set corret logging class for A/P messages
authorTorsten Dreyer <torsten@t3r.de>
Tue, 20 May 2014 20:36:43 +0000 (22:36 +0200)
committerTorsten Dreyer <torsten@t3r.de>
Tue, 20 May 2014 20:36:43 +0000 (22:36 +0200)
src/Autopilot/autopilot.cxx
src/Autopilot/autopilotgroup.cxx

index 0dc923679da82d96b09793fe598014118b456135..dc9101ad6259eede29f1abc4567312b272106db8 100644 (file)
@@ -211,7 +211,7 @@ void Autopilot::add_component( Component * component, double updateInterval )
       name = buf.str();
   }
   if( name != component->get_name() )
-    SG_LOG( SG_ALL, SG_WARN, "Duplicate autopilot component " << component->get_name() << ", renamed to " << name );
+    SG_LOG( SG_AUTOPILOT, SG_WARN, "Duplicate autopilot component " << component->get_name() << ", renamed to " << name );
 
   set_subsystem( name.c_str(), component, updateInterval );
 }
index d4e1e0c53f93108887e27420df7f4d7b553ecd0e..199a14b946fb7d8a8615cf5d81cb4d53d0bcefba 100644 (file)
@@ -71,7 +71,7 @@ void FGXMLAutopilotGroupImplementation::addAutopilot( const std::string& name,
 {
   if( has_subsystem(name) )
   {
-    SG_LOG( SG_ALL,
+    SG_LOG( SG_AUTOPILOT,
             SG_ALERT,
             "NOT adding duplicate " << _nodeName << " name '" << name << "'");
     return;
@@ -90,7 +90,7 @@ void FGXMLAutopilotGroupImplementation::removeAutopilot(const std::string& name)
   Autopilot* ap = static_cast<Autopilot*>(get_subsystem(name));
   if( !ap )
   {
-    SG_LOG( SG_ALL,
+    SG_LOG( SG_AUTOPILOT,
             SG_ALERT,
             "CAN NOT remove unknown " << _nodeName << " '" << name << "'");
     return;
@@ -139,7 +139,7 @@ void FGXMLAutopilotGroupImplementation::initFrom( SGPropertyNode_ptr rootNode,
     {
       SG_LOG
       (
-        SG_ALL,
+        SG_AUTOPILOT,
         SG_WARN,
         "No configuration file specified for this " << childName << "!"
       );
@@ -167,7 +167,7 @@ void FGXMLAutopilotGroupImplementation::initFrom( SGPropertyNode_ptr rootNode,
       if( apName != name )
         SG_LOG
         (
-          SG_ALL,
+          SG_AUTOPILOT,
           SG_WARN,
           "Duplicate " << childName << " configuration name " << name
                                     << ", renamed to " << apName
@@ -187,7 +187,7 @@ void FGXMLAutopilotGroup::addAutopilotFromFile( const std::string& name,
   {
     SG_LOG
     (
-      SG_ALL,
+      SG_AUTOPILOT,
       SG_ALERT,
       "Cannot find property-rule configuration file '" << path << "'."
     );
@@ -195,7 +195,7 @@ void FGXMLAutopilotGroup::addAutopilotFromFile( const std::string& name,
   }
   SG_LOG
   (
-    SG_ALL,
+    SG_AUTOPILOT,
     SG_INFO,
     "Reading property-rule configuration from " << config.str()
   );