Skip to content

Commit

Permalink
Add trace for which backlight adjustment method is being used
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Oct 24, 2024
1 parent 8e81a8f commit 633aeaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/brightness/backlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand All @@ -62,6 +63,7 @@ impl Backlight {
})
});

log::trace!("Using DBUS for {} to change brightness value", path);
(file, connection)
};

Expand Down

0 comments on commit 633aeaf

Please sign in to comment.