Skip to content

Commit 65eee0b

Browse files
committed
log: log failed process in toggle_all
1 parent 4e90318 commit 65eee0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn toggle_all(enable: Option<bool>) -> windows_result::Result<()> {
6363
if should_bypass(process_name) {
6464
continue;
6565
}
66-
_ = toggle_efficiency_mode(pid, enable);
66+
_ = toggle_efficiency_mode(pid, enable).inspect_err(log_warn);
6767
}
6868

6969
Ok(())

0 commit comments

Comments
 (0)