diff options
Diffstat (limited to 'src/chunker/rw/storage/build.rs')
| -rw-r--r-- | src/chunker/rw/storage/build.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/chunker/rw/storage/build.rs b/src/chunker/rw/storage/build.rs index d565693..960def4 100644 --- a/src/chunker/rw/storage/build.rs +++ b/src/chunker/rw/storage/build.rs @@ -1,6 +1,6 @@ use futures::future::join_all; use just_progress::progress; -use log::{error, info, trace}; +use log::{debug, error, trace}; use std::path::{Path, PathBuf}; use tokio::{fs::File, io::AsyncWriteExt}; @@ -60,7 +60,7 @@ async fn rebuild_from_bidx( return Err(ButckRWErrorKind::InvalidBidxFormat); } - info!("Rebuilding from bidx file: {}", bidx_path.display()); + debug!("Rebuilding from bidx file: {}", bidx_path.display()); // Use the unified bidx file reader let (original_filename, chunk_infos) = @@ -72,7 +72,7 @@ async fn rebuild_from_bidx( trace!("Original filename from bidx: {}", original_filename); let chunk_count = chunk_infos.len(); - info!("Found {} chunks in bidx file", chunk_count); + debug!("Found {} chunks in bidx file", chunk_count); // Extract hash bytes from chunk infos let mut chunk_hashes = Vec::with_capacity(chunk_count); @@ -106,7 +106,7 @@ async fn rebuild_from_bidx( storage::generate_unique_path(&ctx.output_dir, &original_filename) }; - info!("Rebuilding file to: {}", output_path.display()); + debug!("Rebuilding file to: {}", output_path.display()); let progress_name = format!("Rebuild `{}`", output_path.display()); progress::update_progress(progress_name.as_str(), 0.0); @@ -159,7 +159,7 @@ async fn rebuild_from_bidx( ))); } - info!("All {} chunks read successfully", success_count); + debug!("All {} chunks read successfully", success_count); // Sort by index and concatenate files chunk_data_list.sort_by_key(|(index, _)| *index); @@ -167,7 +167,7 @@ async fn rebuild_from_bidx( // Calculate total size let total_size: usize = chunk_data_list.iter().map(|(_, data)| data.len()).sum(); let (total_value, total_unit) = size_display(total_size); - info!( + debug!( "Rebuilding file: {} chunks, total size: {:.2} {} ({} bytes)", chunk_count, total_value, total_unit, total_size ); @@ -184,7 +184,7 @@ async fn rebuild_from_bidx( output_file.flush().await?; - info!("File successfully rebuilt: {}", output_path.display()); + debug!("File successfully rebuilt: {}", output_path.display()); progress::complete(progress_name.as_str()); Ok(()) |
