Don't warn for invalid plugin metata

Summary:
See explanation in https://bugs.kde.org/show_bug.cgi?id=412464

BUG: 412464
FIXED-IN: 5.67

Test Plan: restart plasmashell, see way less useless warning spam

Reviewers: #plasma, mart, apol

Reviewed By: apol

Subscribers: apol, alex, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D27080
This commit is contained in:
Nate Graham 2020-01-31 15:52:56 -07:00
parent 0c897d8048
commit b76b908e10

View File

@ -861,7 +861,7 @@ QVector<KPluginMetaData> PluginLoaderPrivate::Cache::findPluginsById(const QStri
auto insertIntoCache = [this](const QString &pluginPath) {
KPluginMetaData metadata(pluginPath);
if (!metadata.isValid()) {
qCWarning(LOG_PLASMA) << "invalid metadata" << pluginPath;
qCDebug(LOG_PLASMA) << "invalid metadata" << pluginPath;
return;
}