From: Torsten Dreyer Date: Tue, 20 May 2014 20:36:43 +0000 (+0200) Subject: set corret logging class for A/P messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3e47fc0c1126744ae835d519b32c57937fe86c63;p=flightgear.git set corret logging class for A/P messages --- diff --git a/src/Autopilot/autopilot.cxx b/src/Autopilot/autopilot.cxx index 0dc923679..dc9101ad6 100644 --- a/src/Autopilot/autopilot.cxx +++ b/src/Autopilot/autopilot.cxx @@ -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 ); } diff --git a/src/Autopilot/autopilotgroup.cxx b/src/Autopilot/autopilotgroup.cxx index d4e1e0c53..199a14b94 100644 --- a/src/Autopilot/autopilotgroup.cxx +++ b/src/Autopilot/autopilotgroup.cxx @@ -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(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() );