From 52e5a9abe83882ca946429f7d8e71894d5852d8f Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 28 Sep 2013 14:47:20 +0100 Subject: [PATCH] Reduce amount of log output at level=debug. --- src/AIModel/AICarrier.cxx | 1 - src/Input/FGCommonInput.cxx | 2 -- src/Main/globals.cxx | 2 -- src/Main/main.cxx | 5 ----- src/Scripting/NasalSys.cxx | 1 - src/Time/light.cxx | 2 -- 6 files changed, 13 deletions(-) diff --git a/src/AIModel/AICarrier.cxx b/src/AIModel/AICarrier.cxx index 8ebb53dbf..fae5d26bc 100644 --- a/src/AIModel/AICarrier.cxx +++ b/src/AIModel/AICarrier.cxx @@ -497,7 +497,6 @@ bool FGAICarrier::OutsideBox() { //returns true if the carrier is outside operat return true; } - SG_LOG(SG_AI, SG_DEBUG, "AICarrier: Inside Operating Box" ); return false; } // end OutsideBox diff --git a/src/Input/FGCommonInput.cxx b/src/Input/FGCommonInput.cxx index 1419d2a01..dc8b1a18e 100644 --- a/src/Input/FGCommonInput.cxx +++ b/src/Input/FGCommonInput.cxx @@ -35,12 +35,10 @@ using std::string; void FGCommonInput::read_bindings (const SGPropertyNode * node, binding_list_t * binding_list, int modifiers, const string & module ) { - SG_LOG(SG_INPUT, SG_DEBUG, "Reading all bindings"); PropertyList bindings = node->getChildren("binding"); static string nasal = "nasal"; for (unsigned int i = 0; i < bindings.size(); i++) { const char *cmd = bindings[i]->getStringValue("command"); - SG_LOG(SG_INPUT, SG_DEBUG, "Reading binding " << cmd); if (nasal.compare(cmd) == 0 && !module.empty()) bindings[i]->setStringValue("module", module.c_str()); binding_list[modifiers].push_back(new SGBinding(bindings[i], globals->get_props())); diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 51f202b49..a6381569b 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -85,7 +85,6 @@ public: } if (r.exists()) { - SG_LOG(SG_IO, SG_DEBUG, "found path:" << aResource << " via /sim/aircraft-dir: " << r.str()); return r; } } @@ -97,7 +96,6 @@ public: for (; it != dirs.end(); ++it) { SGPath p(*it, res); if (p.exists()) { - SG_LOG(SG_IO, SG_DEBUG, "found path:" << aResource << " in aircraft dir: " << *it); return p; } } // of aircraft path iteration diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 175058073..4ca387e21 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -84,9 +84,6 @@ static void fgMainLoop( void ) { frame_signal->fireValueChanged(); - SG_LOG( SG_GENERAL, SG_DEBUG, "Running Main Loop"); - SG_LOG( SG_GENERAL, SG_DEBUG, "======= ==== ===="); - // compute simulated time (allowing for pause, warp, etc) and // real elapsed time double sim_dt, real_dt; @@ -96,8 +93,6 @@ static void fgMainLoop( void ) globals->get_subsystem_mgr()->update(sim_dt); simgear::AtomicChangeListener::fireChangeListeners(); - - SG_LOG( SG_GENERAL, SG_DEBUG, "" ); } diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index bef2ea5c5..d4c1ae0e2 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -1295,7 +1295,6 @@ FGNasalListener::~FGNasalListener() void FGNasalListener::call(SGPropertyNode* which, naRef mode) { if(_active || _dead) return; - SG_LOG(SG_NASAL, SG_DEBUG, "trigger listener #" << _id); _active++; naRef arg[4]; arg[0] = _nas->propNodeGhost(which); diff --git a/src/Time/light.cxx b/src/Time/light.cxx index ceb17d239..3d59e804a 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -305,8 +305,6 @@ void FGLight::update_adj_fog_color () { double heading_offset = globals->get_current_view()->getHeadingOffset_deg() * SGD_DEGREES_TO_RADIANS; - SG_LOG( SG_EVENT, SG_DEBUG, "Updating adjusted fog parameters." ); - // set fog color (we'll try to match the sunset color in the // direction we are looking -- 2.39.5