From: James Turner Date: Sat, 25 Jun 2011 15:18:07 +0000 (+0100) Subject: Tone down some log output for the release, especially related to airways/navaid loading. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=029d2b00eb0dd267729bf49f2b5ca6bd80edefe9;p=flightgear.git Tone down some log output for the release, especially related to airways/navaid loading. --- diff --git a/src/Airports/simple.cxx b/src/Airports/simple.cxx index 9df1cb254..7354db28b 100644 --- a/src/Airports/simple.cxx +++ b/src/Airports/simple.cxx @@ -442,7 +442,7 @@ void FGAirport::processThreshold(SGPropertyNode* aThreshold) // first, let's identify the current runway string id(aThreshold->getStringValue("rwy")); if (!hasRunwayWithIdent(id)) { - SG_LOG(SG_GENERAL, SG_WARN, "FGAirport::processThreshold: " + SG_LOG(SG_GENERAL, SG_DEBUG, "FGAirport::processThreshold: " "found runway not defined in the global data:" << ident() << "/" << id); return; } diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index a8f862388..40a9c438a 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1205,7 +1205,7 @@ FGMultiplayMgr::ProcessPosMsg(const FGMultiplayMgr::MsgBuf& Msg, else { // We failed to find the property. We'll try the next packet immediately. - SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr::ProcessPosMsg - " + SG_LOG(SG_NETWORK, SG_DEBUG, "FGMultiplayMgr::ProcessPosMsg - " "message from " << MsgHdr->Callsign << " has unknown property id " << id); } diff --git a/src/Navaids/airways.cxx b/src/Navaids/airways.cxx index 5bdbb2bee..8313f75b4 100644 --- a/src/Navaids/airways.cxx +++ b/src/Navaids/airways.cxx @@ -197,13 +197,13 @@ void Airway::Network::addEdge(Airway* aWay, const SGGeod& aStartPos, FGPositionedRef end = FGPositioned::findClosestWithIdent(aEndIdent, aEndPos); if (!start) { - SG_LOG(SG_GENERAL, SG_INFO, "unknown airways start pt: '" << aStartIdent << "'"); + SG_LOG(SG_GENERAL, SG_DEBUG, "unknown airways start pt: '" << aStartIdent << "'"); start = FGPositioned::createUserWaypoint(aStartIdent, aStartPos); return; } if (!end) { - SG_LOG(SG_GENERAL, SG_INFO, "unknown airways end pt: '" << aEndIdent << "'"); + SG_LOG(SG_GENERAL, SG_DEBUG, "unknown airways end pt: '" << aEndIdent << "'"); end = FGPositioned::createUserWaypoint(aEndIdent, aEndPos); return; } diff --git a/src/Navaids/navdb.cxx b/src/Navaids/navdb.cxx index 96d38c153..b1a813d61 100644 --- a/src/Navaids/navdb.cxx +++ b/src/Navaids/navdb.cxx @@ -297,12 +297,12 @@ FGRunway* getRunwayFromName(const std::string& aName) const FGAirport* apt = fgFindAirportID(parts[0]); if (!apt) { - SG_LOG(SG_GENERAL, SG_WARN, "navaid " << aName << " associated with bogus airport ID:" << parts[0]); + SG_LOG(SG_GENERAL, SG_DEBUG, "navaid " << aName << " associated with bogus airport ID:" << parts[0]); return NULL; } if (!apt->hasRunwayWithIdent(parts[1])) { - SG_LOG(SG_GENERAL, SG_WARN, "navaid " << aName << " associated with bogus runway ID:" << parts[1]); + SG_LOG(SG_GENERAL, SG_DEBUG, "navaid " << aName << " associated with bogus runway ID:" << parts[1]); return NULL; } diff --git a/src/Navaids/navrecord.cxx b/src/Navaids/navrecord.cxx index 5edc64ef1..8c01c6a10 100644 --- a/src/Navaids/navrecord.cxx +++ b/src/Navaids/navrecord.cxx @@ -61,7 +61,7 @@ FGNavRecord::FGNavRecord(Type aTy, const std::string& aIdent, // assign our own defaults, unless the range is not set for some // reason. if (range < 0.1) { - SG_LOG(SG_GENERAL, SG_WARN, "navaid " << ident() << " has no range set, using defaults"); + SG_LOG(SG_GENERAL, SG_DEBUG, "navaid " << ident() << " has no range set, using defaults"); switch (type()) { case NDB: case VOR: diff --git a/src/Traffic/SchedFlight.cxx b/src/Traffic/SchedFlight.cxx index 5575f6ee0..8b5b6ee68 100644 --- a/src/Traffic/SchedFlight.cxx +++ b/src/Traffic/SchedFlight.cxx @@ -269,13 +269,13 @@ bool FGScheduledFlight::initializeAirports() departurePort = FGAirport::findByIdent(depId); if(departurePort == NULL) { - SG_LOG( SG_GENERAL, SG_WARN, "Traffic manager could not find departure airport : " << depId); + SG_LOG( SG_GENERAL, SG_DEBUG, "Traffic manager could not find departure airport : " << depId); return false; } arrivalPort = FGAirport::findByIdent(arrId); if(arrivalPort == NULL) { - SG_LOG( SG_GENERAL, SG_WARN, "Traffic manager could not find arrival airport : " << arrId); + SG_LOG( SG_GENERAL, SG_DEBUG, "Traffic manager could not find arrival airport : " << arrId); return false; }