don't import debug

This commit is contained in:
minish 2026-03-22 21:16:44 -04:00
parent 5d1fb11f2a
commit 4ce98de0e1
Signed by: min
SSH Key Fingerprint: SHA256:mf+pUTmK92Y57BuCjlkBdd82LqztTfDCQIUp0fCKABc
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,6 @@ use tokio::{
io::{self, AsyncWriteExt},
sync::mpsc,
};
use tracing::debug;
use walkdir::WalkDir;
use crate::config;
@ -87,9 +86,10 @@ impl Disk {
// receive chunks and save them to file
while let Some(chunk) = rx.recv().await {
debug!("writing chunk to disk (length: {})", chunk.len());
tracing::debug!(length = chunk.len(), "writing chunk to disk");
if let Err(err) = file.write_all(&chunk).await {
tracing::error!(%err, "error while writing file to disk");
break;
}
}
});