1
0
Fork 0

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:
Julian Smith 2020-02-19 07:18:12 +00:00
parent 4ec80297bf
commit d7614c184c

View file

@ -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;
}