From 23342bea3cbdd9e95926765b40e83be2c67d57f0 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 3 May 2019 23:59:58 +0200 Subject: [PATCH] Improved matching log --- src/blackcore/aircraftmatcher.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/blackcore/aircraftmatcher.cpp b/src/blackcore/aircraftmatcher.cpp index 19ee59fb6..ba8a274b3 100644 --- a/src/blackcore/aircraftmatcher.cpp +++ b/src/blackcore/aircraftmatcher.cpp @@ -1088,7 +1088,11 @@ namespace BlackCore // not finding anything so far means we have no valid aircraft/airline ICAO combination // but it can happen we found B738, and for DLH there is no B738 but B737, so we search again - if (!r2 && mode.testFlag(CAircraftMatcherSetup::ByFamily)) + if (!remoteAircraft.hasAirlineDesignator()) + { + if (log) { CMatchingUtils::addLogDetailsToList(log, remoteAircraft, "No airline, no secondary search for airline/aircraft", getLogCategories()); } + } + else if (!r2 && mode.testFlag(CAircraftMatcherSetup::ByFamily)) { if (log) { CMatchingUtils::addLogDetailsToList(log, remoteAircraft, u"No exact ICAO match of '" % remoteAircraft.getAirlineAndAircraftIcaoCodeDesignators() % u"', will try family combination", getLogCategories()); }