diff --git a/Cargo.lock b/Cargo.lock index 749a0e479a06..30373f0560b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4884,7 +4884,6 @@ dependencies = [ "tokio", "tracing", "urlencoding", - "uv-warnings", ] [[package]] diff --git a/crates/uv-fs/Cargo.toml b/crates/uv-fs/Cargo.toml index 5bce4503d2fa..3ce6f917982d 100644 --- a/crates/uv-fs/Cargo.toml +++ b/crates/uv-fs/Cargo.toml @@ -13,7 +13,6 @@ license = { workspace = true } workspace = true [dependencies] -uv-warnings = { workspace = true } backoff = { workspace = true } cachedir = { workspace = true } diff --git a/crates/uv-fs/src/lib.rs b/crates/uv-fs/src/lib.rs index 7fbcd81939d2..1d9c4fef16ec 100644 --- a/crates/uv-fs/src/lib.rs +++ b/crates/uv-fs/src/lib.rs @@ -2,9 +2,7 @@ use fs2::FileExt; use std::fmt::Display; use std::path::{Path, PathBuf}; use tempfile::NamedTempFile; -use tracing::{debug, error, trace, warn}; - -use uv_warnings::warn_user; +use tracing::{debug, error, info, trace, warn}; pub use crate::path::*; @@ -329,8 +327,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(), );