LiveMetarProperties::handleMetarData: increased diagnostics.
Increased diagnostics from SG_WARN to SG_ALERT, to mitigate confusion if METAR is out of date etc. Will add a better mechanism for reporting errors at some point.
This commit is contained in:
parent
4ec80297bf
commit
d7614c184c
1 changed files with 2 additions and 2 deletions
|
@ -127,14 +127,14 @@ void LiveMetarProperties::handleMetarData( const std::string & data )
|
|||
m = new FGMetar(data.c_str());
|
||||
}
|
||||
catch( sg_io_exception &) {
|
||||
SG_LOG( SG_ENVIRONMENT, SG_WARN, "Can't parse metar: " << data );
|
||||
SG_LOG( SG_ENVIRONMENT, SG_ALERT, "Can't parse metar: " << data );
|
||||
_failure = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (_maxAge && (m->getAge_min() > _maxAge)) {
|
||||
// METAR is older than max-age, ignore
|
||||
SG_LOG( SG_ENVIRONMENT, SG_DEBUG, "Ignoring outdated METAR for " << getStationId());
|
||||
SG_LOG( SG_ENVIRONMENT, SG_ALERT, "Ignoring outdated METAR for " << getStationId() << " (see /environment/params/metar-max-age-min)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue