We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b87a755 commit 76a9afbCopy full SHA for 76a9afb
crates/uv-fs/src/lib.rs
@@ -325,10 +325,10 @@ impl LockedFile {
325
Ok(Self(file))
326
}
327
Err(err) => {
328
- // Log error code and enum kind to help debugging more exotic failures
329
- // TODO(zanieb): When `raw_os_error` stabilizes, use that to avoid displaying
330
- // the error when it is `WouldBlock`, which is expected and noisy otherwise.
331
- trace!("Try lock error: {err:?}");
+ // Log error code and enum kind to help debugging more exotic failures.
+ if err.kind() != std::io::ErrorKind::WouldBlock {
+ debug!("Try lock error: {err:?}");
+ }
332
info!(
333
"Waiting to acquire lock for `{resource}` at `{}`",
334
file.path().user_display(),
0 commit comments