From: Mike Yuan Date: Wed, 9 Aug 2023 16:15:29 +0000 (+0800) Subject: battery-util: log_notice when unsure about battery state X-Git-Tag: v255-rc1~734^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F28744%2Fhead;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/shared/battery-util.c b/src/shared/battery-util.c index cc3835f9064..85cb067c841 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; }