diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -223,4 +223,10 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma_version.h DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel ) +if (${ECM_VERSION} STRGREATER "5.58.0") + install(FILES plasma-framework.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) +else() + install(FILES plasma-framework.categories DESTINATION ${KDE_INSTALL_CONFDIR}) +endif() + feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) diff --git a/plasma-framework.categories b/plasma-framework.categories new file mode 100644 --- /dev/null +++ b/plasma-framework.categories @@ -0,0 +1 @@ +org.kde.plasma Plasma Core lib DEFAULT_SEVERITY [WARNING] IDENTIFIER [LOG_PLASMA] diff --git a/src/plasma/pluginloader.cpp b/src/plasma/pluginloader.cpp --- a/src/plasma/pluginloader.cpp +++ b/src/plasma/pluginloader.cpp @@ -865,7 +865,7 @@ auto insertIntoCache = [this](const QString &pluginPath) { KPluginMetaData metadata(pluginPath); if (!metadata.isValid()) { - qWarning() << "invalid metadata" << pluginPath; + qCWarning(LOG_PLASMA) << "invalid metadata" << pluginPath; return; }