From 633aeafc1d6987ee717a9ede2986b15e6b78e9f9 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Thu, 24 Oct 2024 22:13:23 +0200 Subject: [PATCH] Add trace for which backlight adjustment method is being used --- src/brightness/backlight.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/brightness/backlight.rs b/src/brightness/backlight.rs index b31075f..58eb4fd 100644 --- a/src/brightness/backlight.rs +++ b/src/brightness/backlight.rs @@ -37,6 +37,7 @@ impl Backlight { .write(true) .open(&brightness_path)?; + log::trace!("Using direct write on {} to change brightness value", path); (file, None) } else { let file = File::open(&brightness_path)?; @@ -62,6 +63,7 @@ impl Backlight { }) }); + log::trace!("Using DBUS for {} to change brightness value", path); (file, connection) };