Skip to content

Commit

Permalink
refactor(diskio): replace eprintln!() with debug!()
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Oct 25, 2024
1 parent 4678cbe commit a8cab33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diskio/threaded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use std::sync::Arc;

use enum_map::{enum_map, Enum, EnumMap};
use sharded_slab::pool::{OwnedRef, OwnedRefMut};
use tracing::debug;

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

0 comments on commit a8cab33

Please sign in to comment.