From 963fe37eeaf1e5c2941dd7e55336ed979567ddb8 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Tue, 25 Aug 2020 11:17:08 -0700 Subject: [PATCH] Update crates/wasi-common/src/sys/windows/path.rs Co-authored-by: iximeow --- crates/wasi-common/src/sys/windows/path.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/wasi-common/src/sys/windows/path.rs b/crates/wasi-common/src/sys/windows/path.rs index 1e92f71afb..2651d54c1e 100644 --- a/crates/wasi-common/src/sys/windows/path.rs +++ b/crates/wasi-common/src/sys/windows/path.rs @@ -170,7 +170,10 @@ pub(crate) fn link( let new_path = concatenate(new_dirfd, new_path)?; if follow_symlinks { // in particular, this will return an error if the target path doesn't exist - tracing::debug!("Following symlinks for path: {:?}", old_path); + tracing::debug!( + old_path = tracing::field::display(&old_path), + "Following symlinks" + ); old_path = fs::canonicalize(&old_path).map_err(|e| match e.raw_os_error() { // fs::canonicalize under Windows will return: // * ERROR_FILE_NOT_FOUND, if it encounters a dangling symlink