summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-08-09 18:15:29 +0200
committerMike Yuan <me@yhndnzj.com>2023-08-13 07:02:58 +0200
commit46b0b7e24ac267cc7322b62814e735c9ae1ad2cb (patch)
tree7101088f143458ba55351ea440bf35425df3a4c8
parentbattery-util: don't log duplicate message (diff)
downloadsystemd-46b0b7e24ac267cc7322b62814e735c9ae1ad2cb.tar.xz
systemd-46b0b7e24ac267cc7322b62814e735c9ae1ad2cb.zip
battery-util: log_notice when unsure about battery state
Follow-up for 02f7f8aa4f1d0b7a24ee3cd5685a791771d9ded5 This deserves some highlight. Addresses https://github.com/systemd/systemd/pull/28597#discussion_r1288592726
-rw-r--r--src/shared/battery-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/battery-util.c b/src/shared/battery-util.c
index cc3835f906..85cb067c84 100644
--- a/src/shared/battery-util.c
+++ b/src/shared/battery-util.c
@@ -274,7 +274,7 @@ int battery_is_discharging_and_low(void) {
/* If we found a battery whose state we couldn't read, don't assume we are in low battery state */
if (unsure) {
- log_info("Found battery with unreadable state, assuming not in low battery state.");
+ log_notice("Found battery with unreadable state, assuming not in low battery state.");
return false;
}