]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
battery-util: log_notice when unsure about battery state 28744/head
authorMike Yuan <me@yhndnzj.com>
Wed, 9 Aug 2023 16:15:29 +0000 (00:15 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 13 Aug 2023 05:02:58 +0000 (13:02 +0800)
Follow-up for 02f7f8aa4f1d0b7a24ee3cd5685a791771d9ded5

This deserves some highlight.

Addresses https://github.com/systemd/systemd/pull/28597#discussion_r1288592726

src/shared/battery-util.c

index cc3835f9064ede0c37b41dda6c5e8d1d1eb7404b..85cb067c8414f29f44612945389fc56113ebb858 100644 (file)
@@ -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;
         }