Skip to content

Commit 5e0ca3c

Browse files
committed
tracing: some windows fixes
1 parent 930912f commit 5e0ca3c

File tree

1 file changed

+2
-2
lines changed
  • crates/wasi-common/src/sys/windows

1 file changed

+2
-2
lines changed

crates/wasi-common/src/sys/windows/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn concatenate<P: AsRef<Path>>(file: &OsDir, path: P) -> Result<PathBuf> {
4646
// components with `out_path`
4747
let out_path = PathBuf::from(strip_extended_prefix(out_path));
4848

49-
tracing::debug!("out_path={:?}", out_path);
49+
tracing::debug!(out_path = tracing::field::debug(&out_path));
5050

5151
Ok(out_path)
5252
}
@@ -171,7 +171,7 @@ pub(crate) fn link(
171171
if follow_symlinks {
172172
// in particular, this will return an error if the target path doesn't exist
173173
tracing::debug!(
174-
old_path = tracing::field::display(&old_path),
174+
old_path = tracing::field::display(old_path.display()),
175175
"Following symlinks"
176176
);
177177
old_path = fs::canonicalize(&old_path).map_err(|e| match e.raw_os_error() {

0 commit comments

Comments
 (0)