File: upstream_2039c96d_applets-brightness-downgrade-severity-of-action-unavailable-message.patch

package info (click to toggle)
powerdevil 4%3A6.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 10,512 kB
  • sloc: cpp: 12,912; xml: 1,904; python: 1,204; sh: 18; makefile: 10
file content (36 lines) | stat: -rw-r--r-- 1,540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 2039c96da97c550f76b782fed2f03a14705a6ca9 Mon Sep 17 00:00:00 2001
From: Christoph Wolk <cwo.kde@posteo.net>
Date: Fri, 4 Apr 2025 17:07:42 +0200
Subject: [PATCH] applets/brightness: downgrade severity of action unavailable
 message

If the KeyboardBrightnessControl action is not available, a warning is
logged. This seems a bit high, as this is the expected case for many
systems.

Instead, use Info severity - this still allows users to see the message
without also seeing all the debug messages, but removes it in the
default case (as the default minimum severity is already set to
Warning).

BUG: 501461
---
 applets/brightness/plugin/keyboardbrightnesscontrol.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applets/brightness/plugin/keyboardbrightnesscontrol.cpp b/applets/brightness/plugin/keyboardbrightnesscontrol.cpp
index e2aba9029..92d46a784 100644
--- a/applets/brightness/plugin/keyboardbrightnesscontrol.cpp
+++ b/applets/brightness/plugin/keyboardbrightnesscontrol.cpp
@@ -143,7 +143,7 @@ QCoro::Task<void> KeyboardBrightnessControl::onSupportedActionsChanged()
     if (actionSupported) {
         onActionSupported();
     } else {
-        qCWarning(APPLETS::BRIGHTNESS) << "D-Bus action" << KEYBOARD_BRIGHTNESS_ACTION << "is not available at service" << SOLID_POWERMANAGEMENT_SERVICE;
+        qCInfo(APPLETS::BRIGHTNESS) << "D-Bus action" << KEYBOARD_BRIGHTNESS_ACTION << "is not available at service" << SOLID_POWERMANAGEMENT_SERVICE;
         onActionUnsupported();
     }
 }
-- 
GitLab