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:
parent
b912026694
commit
f488051bd3
2 changed files with 4 additions and 4 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue