Make some AI-traffic warnings DEV_WARN
This reduces the log noise in release builds, relating to AI ground-nets with incomplete data, especially the commonly occurring ‘gate XYZ doesn’t seem to have any routes associated with it’ message. https://sourceforge.net/p/flightgear/codetickets/1974/
This commit is contained in:
parent
5ba953ad61
commit
b19fe7be7d
1 changed files with 5 additions and 4 deletions
|
@ -75,7 +75,7 @@ bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac,
|
||||||
gate = dep->getDynamics()->getAvailableParking(radius, fltType,
|
gate = dep->getDynamics()->getAvailableParking(radius, fltType,
|
||||||
aircraftType, airline);
|
aircraftType, airline);
|
||||||
if (!gate.isValid()) {
|
if (!gate.isValid()) {
|
||||||
SG_LOG(SG_AI, SG_WARN, "Could not find parking for a " <<
|
SG_LOG(SG_AI, SG_DEV_WARN, "Could not find parking for a " <<
|
||||||
aircraftType <<
|
aircraftType <<
|
||||||
" of flight type " << fltType <<
|
" of flight type " << fltType <<
|
||||||
" of airline " << airline <<
|
" of airline " << airline <<
|
||||||
|
@ -98,8 +98,8 @@ bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac,
|
||||||
|
|
||||||
int size = route.size();
|
int size = route.size();
|
||||||
if (size < 2) {
|
if (size < 2) {
|
||||||
SG_LOG(SG_AI, SG_ALERT, "Push back route from gate " << parking->ident() << " has only " << size << " nodes.");
|
SG_LOG(SG_AI, SG_DEV_WARN, "Push back route from gate " << parking->ident() << " has only " << size << " nodes.");
|
||||||
SG_LOG(SG_AI, SG_ALERT, "Using " << parking->getPushBackPoint());
|
SG_LOG(SG_AI, SG_DEV_WARN, "Using " << parking->getPushBackPoint());
|
||||||
}
|
}
|
||||||
|
|
||||||
route.first();
|
route.first();
|
||||||
|
@ -137,7 +137,8 @@ bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac,
|
||||||
FGTaxiSegment* pushForwardSegment = dep->groundNetwork()->findSegment(parking, 0);
|
FGTaxiSegment* pushForwardSegment = dep->groundNetwork()->findSegment(parking, 0);
|
||||||
// there aren't any routes for this parking.
|
// there aren't any routes for this parking.
|
||||||
if (!pushForwardSegment) {
|
if (!pushForwardSegment) {
|
||||||
SG_LOG(SG_AI, SG_ALERT, "Gate " << parking->ident() << "doesn't seem to have routes associated with it.");
|
SG_LOG(SG_AI, SG_DEV_WARN, "Gate " << parking->ident() << "/" << parking->getName()
|
||||||
|
<< "doesn't seem to have routes associated with it.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue