From 46b0b7e24ac267cc7322b62814e735c9ae1ad2cb Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 10 Aug 2023 00:15:29 +0800 Subject: [PATCH] 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 --- src/shared/battery-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3