From 25c08109e578383557e1d023b26d0227f08662d3 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 24 Jan 2026 18:19:50 +0100 Subject: [PATCH] videoplayer: fix debug logging for loading settings file --- videoplayer/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index 78462f8..63b9675 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -1124,7 +1124,7 @@ fn main() { let mut rcfile = home_path.into_os_string(); rcfile.push(std::path::MAIN_SEPARATOR_STR); rcfile.push(".naplayerrc"); - debug_log!(self; {format!("opening settings file {rcfile}")}); + debug_log!(player; {format!("opening settings file {}", rcfile.to_string_lossy())}); if let Ok(file) = File::open(rcfile) { let br = BufReader::new(file); for (n, line) in br.lines().enumerate() { @@ -1147,7 +1147,7 @@ fn main() { continue; } if let (Ok(thr_w), Ok(thr_h)) = (dim[0].parse::(), dim[1].parse::()) { - debug_log!(self; {format!(" set autoscale threshold to {thr_w}x{thr_h}")}); + debug_log!(player; {format!(" set autoscale threshold to {thr_w}x{thr_h}")}); player.thr_w = thr_w; player.thr_h = thr_h; } else { -- 2.39.5