From 301f3c5bd63572d0f681a86af95dd026c04139c6 Mon Sep 17 00:00:00 2001 From: jmt Date: Mon, 15 Feb 2010 23:57:56 +0000 Subject: [PATCH] Quiet: reduce log-level of various things from INFO to DEBUG or BULK, and tune the categories/level of some specific messages. Part of original commit that only applys to master branch. --- src/Autopilot/xmlauto.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Autopilot/xmlauto.cxx b/src/Autopilot/xmlauto.cxx index d37164a72..119083f66 100644 --- a/src/Autopilot/xmlauto.cxx +++ b/src/Autopilot/xmlauto.cxx @@ -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; } }