From 837a253b78c29d9b1baf5401f579765ee500361f Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 18 Sep 2024 09:41:30 -0500 Subject: [PATCH] Do not use a user-facing warning for "Waiting to acquire lock..." message --- crates/uv-fs/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv-fs/src/lib.rs b/crates/uv-fs/src/lib.rs index 7fbcd81939d2f..3359e51e3db77 100644 --- a/crates/uv-fs/src/lib.rs +++ b/crates/uv-fs/src/lib.rs @@ -2,7 +2,7 @@ use fs2::FileExt; use std::fmt::Display; use std::path::{Path, PathBuf}; use tempfile::NamedTempFile; -use tracing::{debug, error, trace, warn}; +use tracing::{debug, error, info, trace, warn}; use uv_warnings::warn_user; @@ -329,8 +329,8 @@ impl LockedFile { // Log error code and enum kind to help debugging more exotic failures // TODO(zanieb): When `raw_os_error` stabilizes, use that to avoid displaying // the error when it is `WouldBlock`, which is expected and noisy otherwise. - trace!("Try lock error, waiting for exclusive lock: {:?}", err); - warn_user!( + trace!("Try lock error: {:?}", err); + info!( "Waiting to acquire lock for `{resource}` at `{}`", file.path().user_display(), );