Skip to content

Commit

Permalink
feat: 文件校验失败时记录一下重定向
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Mar 6, 2024
1 parent 8cfaf3b commit 7b0107a
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 @@ -192,7 +192,7 @@ export class Cluster {
const isFileCorrect = validateFile(res.body, file.hash)
if (!isFileCorrect) {
hasError = true
logger.error(`文件${file.path}校验失败`)
logger.error({redirectUrls: res.redirectUrls}, `文件${file.path}校验失败`)
return
}
await this.storage.writeFile(hashToFilename(file.hash), res.body, file)
Expand Down

0 comments on commit 7b0107a

Please sign in to comment.