log chunks
This commit is contained in:
@@ -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})"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user