Log info/warning about METAR URL

This commit is contained in:
Klaus Basan
2019-09-05 15:15:42 +02:00
committed by Mat Sutcliffe
parent 0e3cba35ff
commit 1d75b5fac7
2 changed files with 13 additions and 5 deletions

View File

@@ -1175,6 +1175,7 @@ namespace BlackCore
CMetar CContextNetwork::getMetarForAirport(const CAirportIcaoCode &airportIcaoCode) const
{
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << airportIcaoCode; }
if (!sApp || !sApp->getWebDataServices()) { return {}; }
return sApp->getWebDataServices()->getMetarForAirport(airportIcaoCode);
}