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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user