From 086428754ecfce28a7603475e6256c13985a6539 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 26 Sep 2019 11:47:59 +0300 Subject: [PATCH] [nightcolor] Print a debug message upon receiving new location from kded module Summary: This can be useful for debugging whether Night Color manager actually receives new location data from colorcorrectlocationupdater kded module. CCBUG: 412211 Test Plan: Run kwin with QT_LOGGING_RULES="kwin_colorcorrection.debug=true" Run from the terminal the following two commands qdbus org.kde.kded5 /kded unloadModule colorcorrectlocationupdater qdbus org.kde.kded5 /kded loadModule colorcorrectlocationupdater Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24236 --- colorcorrection/manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/colorcorrection/manager.cpp b/colorcorrection/manager.cpp index 651d3a4af9..50b304ca0e 100644 --- a/colorcorrection/manager.cpp +++ b/colorcorrection/manager.cpp @@ -825,6 +825,8 @@ bool Manager::changeConfiguration(QHash data) void Manager::autoLocationUpdate(double latitude, double longitude) { + qCDebug(KWIN_COLORCORRECTION, "Received new location (lat: %f, lng: %f)", latitude, longitude); + if (!checkLocation(latitude, longitude)) { return; }