From 403c617eea56cc7581ee348e53d41eb4d291ba29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9ven=20Car?= Date: Wed, 14 Aug 2019 16:27:31 +0200 Subject: Add a logging category for logs warnings Summary: Disable logs unless the logging category kf5.kconfig.core is enabled Test Plan: ctest Reviewers: #frameworks, apol, cgiboudeaux Reviewed By: cgiboudeaux Subscribers: cgiboudeaux, mikeroyal, apol, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D22061 --- src/core/kconfigwatcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/kconfigwatcher.cpp') diff --git a/src/core/kconfigwatcher.cpp b/src/core/kconfigwatcher.cpp index 9a37b6f0..2e7defcb 100644 --- a/src/core/kconfigwatcher.cpp +++ b/src/core/kconfigwatcher.cpp @@ -20,6 +20,7 @@ #include "kconfigwatcher.h" #include "config-kconfig.h" +#include "kconfig_core_log_settings.h" #if KCONFIG_USE_DBUS #include @@ -85,7 +86,7 @@ KConfigWatcher::KConfigWatcher(const KSharedConfig::Ptr &config): SLOT(onConfigChangeNotification(QHash))); } #else - qWarning() << "Use of KConfigWatcher without DBus support. You will not receive updates"; + qCWarning(KCONFIG_CORE_LOG) << "Use of KConfigWatcher without DBus support. You will not receive updates"; #endif } -- cgit v1.2.1