From 43835204d3473502ffce4c430cf6d51bc80071c3 Mon Sep 17 00:00:00 2001 From: Cherry <13651622+MolotovCherry@users.noreply.github.com> Date: Sat, 16 Nov 2024 18:59:39 -0800 Subject: [PATCH] Move rest of paths to separate arg --- crates/shared/src/paths.rs | 6 +++--- crates/yabg3nml/src/paths.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/shared/src/paths.rs b/crates/shared/src/paths.rs index 3c988df..ae71d20 100644 --- a/crates/shared/src/paths.rs +++ b/crates/shared/src/paths.rs @@ -17,7 +17,7 @@ pub fn get_larian_local_dir() -> Result { local.push("Larian Studios"); - trace!("Looking for larian local dir at: {}", local.display()); + trace!(path = %local.display(), "Looking for larian local dir"); if local.exists() { _ = CACHE.set(local.clone()); @@ -38,7 +38,7 @@ pub fn get_bg3_local_dir() -> Result { local.push("Baldur's Gate 3"); - trace!("Looking for bg3 local dir at: {}", local.display()); + trace!(path = %local.display(), "Looking for bg3 local dir"); if local.exists() { _ = CACHE.set(local.clone()); @@ -58,7 +58,7 @@ pub fn get_bg3_plugins_dir() -> Result { let mut plugins_dir = get_bg3_local_dir()?; plugins_dir.push("Plugins"); - trace!("Looking for bg3 plugins dir at: {}", plugins_dir.display()); + trace!(path = %plugins_dir.display(), "Looking for bg3 plugins dir"); if !plugins_dir.exists() { info!("Plugin directory not found; creating it.."); diff --git a/crates/yabg3nml/src/paths.rs b/crates/yabg3nml/src/paths.rs index eb7d304..4cf96c3 100644 --- a/crates/yabg3nml/src/paths.rs +++ b/crates/yabg3nml/src/paths.rs @@ -56,8 +56,8 @@ pub fn get_game_binary_paths(config: &Config) -> Bg3Exes { .map(ToOwned::to_owned) .unwrap_or_else(|| bg3_dx11.to_string_lossy().to_string()); - trace!(path = bg3, "Looking for bg3 at"); - trace!(path = bg3_dx11, "Looking for bg3_dx11 at"); + trace!(path = %bg3, "Looking for bg3"); + trace!(path = %bg3_dx11, "Looking for bg3_dx11"); return Bg3Exes { bg3, bg3_dx11 }; }