Skip to content

Commit a8cab33

Browse files
committed
refactor(diskio): replace eprintln!() with debug!()
1 parent 4678cbe commit a8cab33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diskio/threaded.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use std::sync::Arc;
1212

1313
use enum_map::{enum_map, Enum, EnumMap};
1414
use sharded_slab::pool::{OwnedRef, OwnedRefMut};
15+
use tracing::debug;
1516

1617
use super::{perform, CompletedIo, Executor, Item};
1718
use crate::utils::notifications::Notification;
@@ -268,9 +269,8 @@ impl<'a> Executor for Threaded<'a> {
268269
prev_files as u64,
269270
));
270271
}
271-
#[allow(clippy::print_stderr)]
272272
if prev_files > 50 {
273-
eprintln!("{prev_files} deferred IO operations");
273+
debug!("{prev_files} deferred IO operations");
274274
}
275275
let buf: Vec<u8> = vec![0; prev_files];
276276
// Cheap wrap-around correctness check - we have 20k files, more than

0 commit comments

Comments
 (0)