]> git.mxchange.org Git - flightgear.git/commitdiff
don't clutter the terminal with meaningless (to all but one developer)
authormfranz <mfranz>
Thu, 12 Oct 2006 21:48:18 +0000 (21:48 +0000)
committermfranz <mfranz>
Thu, 12 Oct 2006 21:48:18 +0000 (21:48 +0000)
"cerr" messages (SG_LOG/SG_BULK is meant for that)

src/Airports/groundnetwork.cxx
src/Airports/simple.cxx
src/Airports/trafficcontrol.cxx

index 6d856f23af7e3225ba3ddec93fe48c24e939cece..2333729933e265c8521ece8d9076dfb74859fea8 100644 (file)
@@ -283,8 +283,8 @@ void FGGroundNetwork::init()
            int start2 = (*j)->getStart()->getIndex();
            int end2   = (*j)->getEnd()->getIndex();
            int oppIndex = (*j)->getIndex();
-           cerr << "Opposite of  " << (*i)->getIndex() << " (" << start1 << "," << end1 << ") "
-                << "happens to be " << oppIndex      << " (" << start2 << "," << end2 << ") " << endl;
+//         cerr << "Opposite of  " << (*i)->getIndex() << " (" << start1 << "," << end1 << ") "
+//              << "happens to be " << oppIndex      << " (" << start2 << "," << end2 << ") " << endl;
            break;
          }
          j++;
@@ -352,7 +352,7 @@ FGTaxiSegment *FGGroundNetwork::findSegment(int idx)
     return segments[idx-1]->getAddress();
   else
     {
-      cerr << "Alert: trying to find invalid segment " << idx << endl;
+      //cerr << "Alert: trying to find invalid segment " << idx << endl;
       return 0;
     }
 }
index fa159ca96a0bb8899210e629d1bd6d2e3bf5b304..cf969de1ff60232eed7357c1699a3f4d005e02b0 100644 (file)
@@ -90,7 +90,7 @@ FGAirportDynamics * FGAirport::getDynamics()
         return dynamics;
     } else {
         FGRunwayPreference rwyPrefs;
-        cerr << "Trying to load dynamics for " << _id << endl;
+        //cerr << "Trying to load dynamics for " << _id << endl;
         dynamics = new FGAirportDynamics(_latitude, _longitude, _elevation, _id);
 
         SGPath parkpath( globals->get_fg_root() );
index fe64bb62470a230278decb609223e62cc5102c9f..1fd721a830d8ba5a699425a1f6be2cc5381bd114 100644 (file)
@@ -39,11 +39,11 @@ void FGTrafficRecord::setPositionAndIntentions(int pos, FGAIFlightPlan *route)
      intVecIterator i = intentions.begin();
      if ((*i) != pos) {
        SG_LOG(SG_GENERAL, SG_ALERT, "Error in FGTrafficRecord::setPositionAndIntentions");
-       cerr << "Pos : " << pos << " Curr " << *(intentions.begin())  << endl;
+       //cerr << "Pos : " << pos << " Curr " << *(intentions.begin())  << endl;
        for (intVecIterator i = intentions.begin(); i != intentions.end() ; i++) {
-       cerr << (*i) << " ";
+       //cerr << (*i) << " ";
        }
-       cerr << endl;
+       //cerr << endl;
      }
      intentions.erase(i);
    } else {
@@ -137,7 +137,7 @@ int FGTrafficRecord::crosses(FGGroundNetwork *net, FGTrafficRecord &other)
          if ((*i) > 0) {
            if ((currentTargetNode == net->findSegment(*i)->getEnd()->getIndex()))
              {
-               cerr << "Current crosses at " << currentTargetNode <<endl;
+               //cerr << "Current crosses at " << currentTargetNode <<endl;
                return currentTargetNode;
              }
          }
@@ -150,7 +150,7 @@ int FGTrafficRecord::crosses(FGGroundNetwork *net, FGTrafficRecord &other)
          if ((*i) > 0) {
            if (otherTargetNode == net->findSegment(*i)->getEnd()->getIndex())
              {
-               cerr << "Other crosses at " << currentTargetNode <<endl;
+               //cerr << "Other crosses at " << currentTargetNode <<endl;
                return otherTargetNode;
              }
          }
@@ -204,12 +204,12 @@ bool FGTrafficRecord::isOpposing (FGGroundNetwork *net, FGTrafficRecord &other,
                        if (opp->getIndex() == 
                            net->findSegment(*j)->getIndex())
                          {
-                           cerr << "Nodes " << net->findSegment(*i)->getIndex()
-                                << " and  " << net->findSegment(*j)->getIndex()
-                                << " are opposites " << endl;
+//                         cerr << "Nodes " << net->findSegment(*i)->getIndex()
+//                              << " and  " << net->findSegment(*j)->getIndex()
+//                              << " are opposites " << endl;
                            if (net->findSegment(*i)->getStart()->getIndex() == node) {
                              {
-                               cerr << "Found the node" << endl;
+                               //cerr << "Found the node" << endl;
                                return true;
                              }
                            }