aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfigwatcher.cpp
diff options
context:
space:
mode:
authorMéven Car <meven29@gmail.com>2019-08-14 16:27:31 +0200
committerMéven Car <meven29@gmail.com>2019-08-14 17:25:59 +0200
commit403c617eea56cc7581ee348e53d41eb4d291ba29 (patch)
tree303e9b5f24d59356d493045948bb1d5a0455e61a /src/core/kconfigwatcher.cpp
parent2de9e4fc165bcadd54f81b7d17904c45632705f5 (diff)
downloadkconfig-403c617eea56cc7581ee348e53d41eb4d291ba29.tar.gz
kconfig-403c617eea56cc7581ee348e53d41eb4d291ba29.tar.bz2
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
Diffstat (limited to 'src/core/kconfigwatcher.cpp')
-rw-r--r--src/core/kconfigwatcher.cpp3
1 files changed, 2 insertions, 1 deletions
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 <QDBusConnection>
@@ -85,7 +86,7 @@ KConfigWatcher::KConfigWatcher(const KSharedConfig::Ptr &config):
SLOT(onConfigChangeNotification(QHash<QString,QByteArrayList>)));
}
#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
}