Skip to content

Commit

Permalink
feat: 下载错误时给个redirectUrls
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Feb 23, 2024
1 parent 3d7420e commit 1939038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class Cluster {
hasError = true
if (e instanceof HTTPError) {
logger.error({err: e}, `下载文件${file.path}失败: ${e.response.statusCode}, url: ${e.response.url}`)
logger.trace({err: e}, e.response.body?.toString())
logger.trace({err: e, redirectUrls: e.response.redirectUrls}, e.response.body?.toString())
} else {
logger.error({err: e}, `下载文件${file.path}失败`)
}
Expand Down

0 comments on commit 1939038

Please sign in to comment.