1
0
Fork 0

don't clutter the terminal with meaningless (to all but one developer)

"cerr" messages (SG_LOG/SG_BULK is meant for that)
This commit is contained in:
mfranz 2006-10-12 21:48:18 +00:00
parent 2a0abc6875
commit 8f7df58c94
3 changed files with 13 additions and 13 deletions

View file

@ -283,8 +283,8 @@ void FGGroundNetwork::init()
int start2 = (*j)->getStart()->getIndex(); int start2 = (*j)->getStart()->getIndex();
int end2 = (*j)->getEnd()->getIndex(); int end2 = (*j)->getEnd()->getIndex();
int oppIndex = (*j)->getIndex(); int oppIndex = (*j)->getIndex();
cerr << "Opposite of " << (*i)->getIndex() << " (" << start1 << "," << end1 << ") " // cerr << "Opposite of " << (*i)->getIndex() << " (" << start1 << "," << end1 << ") "
<< "happens to be " << oppIndex << " (" << start2 << "," << end2 << ") " << endl; // << "happens to be " << oppIndex << " (" << start2 << "," << end2 << ") " << endl;
break; break;
} }
j++; j++;
@ -352,7 +352,7 @@ FGTaxiSegment *FGGroundNetwork::findSegment(int idx)
return segments[idx-1]->getAddress(); return segments[idx-1]->getAddress();
else else
{ {
cerr << "Alert: trying to find invalid segment " << idx << endl; //cerr << "Alert: trying to find invalid segment " << idx << endl;
return 0; return 0;
} }
} }

View file

@ -90,7 +90,7 @@ FGAirportDynamics * FGAirport::getDynamics()
return dynamics; return dynamics;
} else { } else {
FGRunwayPreference rwyPrefs; 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); dynamics = new FGAirportDynamics(_latitude, _longitude, _elevation, _id);
SGPath parkpath( globals->get_fg_root() ); SGPath parkpath( globals->get_fg_root() );

View file

@ -39,11 +39,11 @@ void FGTrafficRecord::setPositionAndIntentions(int pos, FGAIFlightPlan *route)
intVecIterator i = intentions.begin(); intVecIterator i = intentions.begin();
if ((*i) != pos) { if ((*i) != pos) {
SG_LOG(SG_GENERAL, SG_ALERT, "Error in FGTrafficRecord::setPositionAndIntentions"); 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++) { for (intVecIterator i = intentions.begin(); i != intentions.end() ; i++) {
cerr << (*i) << " "; //cerr << (*i) << " ";
} }
cerr << endl; //cerr << endl;
} }
intentions.erase(i); intentions.erase(i);
} else { } else {
@ -137,7 +137,7 @@ int FGTrafficRecord::crosses(FGGroundNetwork *net, FGTrafficRecord &other)
if ((*i) > 0) { if ((*i) > 0) {
if ((currentTargetNode == net->findSegment(*i)->getEnd()->getIndex())) if ((currentTargetNode == net->findSegment(*i)->getEnd()->getIndex()))
{ {
cerr << "Current crosses at " << currentTargetNode <<endl; //cerr << "Current crosses at " << currentTargetNode <<endl;
return currentTargetNode; return currentTargetNode;
} }
} }
@ -150,7 +150,7 @@ int FGTrafficRecord::crosses(FGGroundNetwork *net, FGTrafficRecord &other)
if ((*i) > 0) { if ((*i) > 0) {
if (otherTargetNode == net->findSegment(*i)->getEnd()->getIndex()) if (otherTargetNode == net->findSegment(*i)->getEnd()->getIndex())
{ {
cerr << "Other crosses at " << currentTargetNode <<endl; //cerr << "Other crosses at " << currentTargetNode <<endl;
return otherTargetNode; return otherTargetNode;
} }
} }
@ -204,12 +204,12 @@ bool FGTrafficRecord::isOpposing (FGGroundNetwork *net, FGTrafficRecord &other,
if (opp->getIndex() == if (opp->getIndex() ==
net->findSegment(*j)->getIndex()) net->findSegment(*j)->getIndex())
{ {
cerr << "Nodes " << net->findSegment(*i)->getIndex() // cerr << "Nodes " << net->findSegment(*i)->getIndex()
<< " and " << net->findSegment(*j)->getIndex() // << " and " << net->findSegment(*j)->getIndex()
<< " are opposites " << endl; // << " are opposites " << endl;
if (net->findSegment(*i)->getStart()->getIndex() == node) { if (net->findSegment(*i)->getStart()->getIndex() == node) {
{ {
cerr << "Found the node" << endl; //cerr << "Found the node" << endl;
return true; return true;
} }
} }