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:
parent
2a0abc6875
commit
8f7df58c94
3 changed files with 13 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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() );
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue