Skip to content

Commit 7ae4ae7

Browse files
fix(download): 增加分块请求失败时的日志输出
在分块下载请求失败时,打印具体错误信息和重试次数,便于调试网络问题
1 parent 280c938 commit 7ae4ae7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

native/tools/src/download.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,9 @@ async fn download_multi_stream(
407407
break;
408408
}
409409
},
410-
Err(_) => {
410+
Err(e) => {
411411
// 请求失败
412+
println!("[Download] Chunk request failed on attempt {}: {}", attempts + 1, e);
412413
}
413414
}
414415

0 commit comments

Comments
 (0)