Skip to content

Commit e13f824

Browse files
committed
修复一些问题
1 parent bd77959 commit e13f824

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,10 +704,10 @@ def disable(reason, *args, **kwargs):
704704
if not self.disabled:
705705
logger.twarn(
706706
"cluster.warn.webdav." + reason,
707+
*args,
708+
**kwargs,
707709
hostname=self.hostname,
708710
endpoint=self.endpoint
709-
*args,
710-
**kwargs
711711
)
712712
storages.disable(self)
713713
self.fetch = False
@@ -729,7 +729,7 @@ def disable(reason, *args, **kwargs):
729729
h = get_hash(self.keepalive_file.hash)
730730
h.update(content.getbuffer())
731731
if h.hexdigest() != self.keepalive_file.hash:
732-
disable("file_hash", hash=h.hexdigest())
732+
disable("file_hash", status=resp.status, url=resp.real_url, file_hash=h.hexdigest(), file_size=unit.format_bytes(len(content.getbuffer())), hash=self.keepalive_file.hash, hash_size=self.keepalive_file.size)
733733
return
734734
if not self.disabled:
735735
logger.tsuccess(

i18n/zh_cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@
8989
"timings.info.finished": "任务已完成,耗时:$time。",
9090
"cluster.info.download.configuration": "下载配置策略:$type,下载源:$source,下载并发:$concurrency。",
9191
"cert.error.failed.file": "无法从本地文件中加载证书",
92-
"cluster.warn.webdav.file_hash": "文件哈希值不对应或获取失败,该文件哈希值为$file_hash"
92+
"cluster.warn.webdav.file_hash": "存活失败 $url($status) 文件校验失败,原文件:$hash($hash_size),内容:$file_hash($file_size)"
9393
}

0 commit comments

Comments
 (0)