Demote log level of max_charge_lvl check to debug

This commit is contained in:
NGnius (Graham) 2023-10-18 22:56:13 -04:00
parent 46659a474d
commit a8ad9a9e62

View file

@ -585,7 +585,7 @@ impl OnPowerEvent for Battery {
} }
.unwrap_or_else(|mut e| errors.append(&mut e)); .unwrap_or_else(|mut e| errors.append(&mut e));
let attr_exists = MAX_BATTERY_CHARGE_LEVEL_ATTR.exists(&*self.sysfs_hwmon); let attr_exists = MAX_BATTERY_CHARGE_LEVEL_ATTR.exists(&*self.sysfs_hwmon);
log::info!("Does battery limit attribute (max_battery_charge_level) exist? {}", attr_exists); log::debug!("Does battery limit attribute (max_battery_charge_level) exist? {}", attr_exists);
let mut charge_limit_set_now = false; let mut charge_limit_set_now = false;
for ev in &mut self.events { for ev in &mut self.events {
if attr_exists { if attr_exists {