log chunks

This commit is contained in:
2025-11-14 01:02:49 +01:00
parent 1b2b2cf8c0
commit 4764bb9fd3
+8 -1
View File
@@ -906,6 +906,13 @@ async fn download_from_peer(
// Download chunks with error handling // Download chunks with error handling
for chunk in &plan.chunks { for chunk in &plan.chunks {
log::info!(
"Downloading chunk {} (offset {}, length {}) from {}",
chunk.relative_path,
chunk.offset,
chunk.length,
peer_addr
);
let result = download_chunk(&mut conn, &base_dir, game_id, chunk).await; let result = download_chunk(&mut conn, &base_dir, game_id, chunk).await;
results.push(ChunkDownloadResult { results.push(ChunkDownloadResult {
chunk: chunk.clone(), chunk: chunk.clone(),
@@ -1809,7 +1816,7 @@ async fn handle_peer_stream(
offset, offset,
length, length,
} => { } => {
log::trace!( log::info!(
"{remote_addr:?} received GetGameFileChunk request for {relative_path} (offset {offset}, length {length})" "{remote_addr:?} received GetGameFileChunk request for {relative_path} (offset {offset}, length {length})"
); );