diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-08-09 18:15:29 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-08-13 07:02:58 +0200 |
commit | 46b0b7e24ac267cc7322b62814e735c9ae1ad2cb (patch) | |
tree | 7101088f143458ba55351ea440bf35425df3a4c8 | |
parent | battery-util: don't log duplicate message (diff) | |
download | systemd-46b0b7e24ac267cc7322b62814e735c9ae1ad2cb.tar.xz systemd-46b0b7e24ac267cc7322b62814e735c9ae1ad2cb.zip |
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
-rw-r--r-- | src/shared/battery-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/battery-util.c b/src/shared/battery-util.c index cc3835f906..85cb067c84 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; } |