diff --git a/crates/wasi-common/src/sys/windows/path.rs b/crates/wasi-common/src/sys/windows/path.rs index 2651d54c1e..89252d3d00 100644 --- a/crates/wasi-common/src/sys/windows/path.rs +++ b/crates/wasi-common/src/sys/windows/path.rs @@ -46,7 +46,7 @@ fn concatenate>(file: &OsDir, path: P) -> Result { // components with `out_path` let out_path = PathBuf::from(strip_extended_prefix(out_path)); - tracing::debug!("out_path={:?}", out_path); + tracing::debug!(out_path = tracing::field::debug(&out_path)); Ok(out_path) } @@ -171,7 +171,7 @@ pub(crate) fn link( if follow_symlinks { // in particular, this will return an error if the target path doesn't exist tracing::debug!( - old_path = tracing::field::display(&old_path), + old_path = tracing::field::display(old_path.display()), "Following symlinks" ); old_path = fs::canonicalize(&old_path).map_err(|e| match e.raw_os_error() {