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
src/Airports
|
@ -75,11 +75,11 @@ bool fgAirportDBLoad( FGAirportList *airports, FGRunwayList *runways,
|
||||||
while ( ! in.eof() ) {
|
while ( ! in.eof() ) {
|
||||||
in.getline(tmp, 2048);
|
in.getline(tmp, 2048);
|
||||||
line = tmp;
|
line = tmp;
|
||||||
SG_LOG( SG_GENERAL, SG_DEBUG, "-> '" << line << "'" );
|
SG_LOG( SG_GENERAL, SG_BULK, "-> '" << line << "'" );
|
||||||
if ( line.length() ) {
|
if ( line.length() ) {
|
||||||
token = simgear::strutils::split( line );
|
token = simgear::strutils::split( line );
|
||||||
if ( token.size() ) {
|
if ( token.size() ) {
|
||||||
SG_LOG( SG_GENERAL, SG_DEBUG, "token[0] " << token[0] );
|
SG_LOG( SG_GENERAL, SG_BULK, "token[0] " << token[0] );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
token.clear();
|
token.clear();
|
||||||
|
@ -105,7 +105,7 @@ bool fgAirportDBLoad( FGAirportList *airports, FGRunwayList *runways,
|
||||||
|
|
||||||
string id = token[4];
|
string id = token[4];
|
||||||
double elev = atof( token[1].c_str() );
|
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 );
|
<< elev );
|
||||||
|
|
||||||
if ( !last_apt_id.empty()) {
|
if ( !last_apt_id.empty()) {
|
||||||
|
|
|
@ -54,7 +54,7 @@ void FGAirportList::add( const string id, const double longitude,
|
||||||
a._has_metar = has_metar;
|
a._has_metar = has_metar;
|
||||||
airports_by_id[a._id] = a;
|
airports_by_id[a._id] = a;
|
||||||
airports_array.push_back( &airports_by_id[a._id] );
|
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 );
|
<< ", " << latitude << " elev = " << elevation );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue