{
if ((start.size() != end.size()) || (start.size() != scheduleNames.size()))
{
- cerr << "Unable to parse schedule times" << endl;
+ SG_LOG( SG_GENERAL, SG_INFO, "Unable to parse schedule times" );
exit(1);
}
else
if ((tailWind > maxTail) || (crossWind > maxCross))
validSelection = false;
}else {
- cerr << "Failed to find runway " << name << " at " << aptId << endl;
+ SG_LOG( SG_GENERAL, SG_INFO, "Failed to find runway " << name << " at " << aptId );
exit(1);
}
if ((tailWind > maxTail) || (crossWind > maxCross))
validSelection = false;
}else {
- cerr << "Failed to find runway " << name << " at " << aptId << endl;
+ SG_LOG( SG_GENERAL, SG_INFO, "Failed to find runway " << name << " at " << aptId );
exit(1);
}
if (!foundRoute)
{
- cerr << "Failed to find route from waypoint " << start << " to " << end << endl;
+ SG_LOG( SG_GENERAL, SG_INFO, "Failed to find route from waypoint " << start << " to " << end );
exit(1);
}
sort(routes.begin(), routes.end());
}
else
{
- cerr << "4" << endl;
+ SG_LOG( SG_GENERAL, SG_DEBUG, "4" );
}
traceStack.pop_back();
totalDistance -= distance;
if((d = ulOpenDir(aid.c_str())) == NULL)
return;
while((dent = ulReadDir(d)) != NULL) {
- cerr << "Dent: " << dent->d_name; // DEBUG
+ SG_LOG( SG_GENERAL, SG_DEBUG, "Dent: " << dent->d_name );
ai_dirs.insert(dent->d_name);
}
ulCloseDir(d);