battery-util: log_notice when unsure about battery state

Follow-up for 02f7f8aa4f

This deserves some highlight.

Addresses https://github.com/systemd/systemd/pull/28597#discussion_r1288592726
This commit is contained in:
Mike Yuan
2023-08-13 13:02:58 +08:00
parent 60d83c3e86
commit 46b0b7e24a
+1 -1
View 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;
}