Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d3f6aa6d authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 385293 - Unnecessary warning messages using "akonadictl fsck"

FIXE-IN: 5.8.0
BUG: 385293
parent 0f66f545
......@@ -190,7 +190,9 @@ Term recursiveEmailTermMapping(const Akonadi::SearchTerm &term)
return Term(QStringLiteral("hasattachment"), !term.isNegated());
case Akonadi::EmailSearchTerm::Unknown:
default:
qCWarning(AKONADIPLUGIN_INDEXER_LOG) << "unknown term " << term.key();
if (!term.key().isEmpty()) {
qCWarning(AKONADIPLUGIN_INDEXER_LOG) << "unknown term " << term.key();
}
}
}
return Term();
......@@ -223,7 +225,9 @@ Term recursiveCalendarTermMapping(const Akonadi::SearchTerm &term)
return t;
}
default:
qCWarning(AKONADIPLUGIN_INDEXER_LOG) << "unknown term " << term.key();
if (!term.key().isEmpty()) {
qCWarning(AKONADIPLUGIN_INDEXER_LOG) << "unknown term " << term.key();
}
}
}
return Term();
......@@ -249,7 +253,9 @@ Term recursiveNoteTermMapping(const Akonadi::SearchTerm &term)
case Akonadi::EmailSearchTerm::Body:
return getTerm(term, QStringLiteral("body"));
default:
qCWarning(AKONADIPLUGIN_INDEXER_LOG) << "unknown term " << term.key();
if (!term.key().isEmpty()) {
qCWarning(AKONADIPLUGIN_INDEXER_LOG) << "unknown term " << term.key();
}
}
}
return Term();
......@@ -280,7 +286,9 @@ Term recursiveContactTermMapping(const Akonadi::SearchTerm &term)
return getTerm(term, QStringLiteral("uid"));
case Akonadi::ContactSearchTerm::Unknown:
default:
qCWarning(AKONADIPLUGIN_INDEXER_LOG) << "unknown term " << term.key();
if (!term.key().isEmpty()) {
qCWarning(AKONADIPLUGIN_INDEXER_LOG) << "unknown term " << term.key();
}
}
}
return Term();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment