1
0
Fork 0

Change debug level: try --log-level=debug and you see why (takes very, very, *very* long to output all 21.000 airports that way).

This commit is contained in:
ehofman 2005-01-15 14:25:58 +00:00
parent b912026694
commit f488051bd3
2 changed files with 4 additions and 4 deletions

View file

@ -75,11 +75,11 @@ bool fgAirportDBLoad( FGAirportList *airports, FGRunwayList *runways,
while ( ! in.eof() ) {
in.getline(tmp, 2048);
line = tmp;
SG_LOG( SG_GENERAL, SG_DEBUG, "-> '" << line << "'" );
SG_LOG( SG_GENERAL, SG_BULK, "-> '" << line << "'" );
if ( line.length() ) {
token = simgear::strutils::split( line );
if ( token.size() ) {
SG_LOG( SG_GENERAL, SG_DEBUG, "token[0] " << token[0] );
SG_LOG( SG_GENERAL, SG_BULK, "token[0] " << token[0] );
}
} else {
token.clear();
@ -105,7 +105,7 @@ bool fgAirportDBLoad( FGAirportList *airports, FGRunwayList *runways,
string id = token[4];
double elev = atof( token[1].c_str() );
SG_LOG( SG_GENERAL, SG_DEBUG, "Next airport = " << id << " "
SG_LOG( SG_GENERAL, SG_BULK, "Next airport = " << id << " "
<< elev );
if ( !last_apt_id.empty()) {

View file

@ -54,7 +54,7 @@ void FGAirportList::add( const string id, const double longitude,
a._has_metar = has_metar;
airports_by_id[a._id] = a;
airports_array.push_back( &airports_by_id[a._id] );
SG_LOG( SG_GENERAL, SG_DEBUG, "Adding " << id << " pos = " << longitude
SG_LOG( SG_GENERAL, SG_BULK, "Adding " << id << " pos = " << longitude
<< ", " << latitude << " elev = " << elevation );
}