Skip to content

Commit c5959f0

Browse files
committed
更新支持禁用下载日志
1 parent 8f3005d commit c5959f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"cluster.timeout.keepalive": 300,
1717
"cluster.reconnect.delay": 60,
1818
"cluster.reconnect.retry": -1,
19+
"cluster.download.access_logs": True,
20+
"cluster.download.retry_delay": 60,
1921
"cache.buffer": 536870912,
2022
"cache.time": 1800,
2123
"cache.check": 360,

core/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"Server": Config.get("web.server_name"),
5555
}
5656
CLUSTER_PATTERN = re.compile(r'https?://([a-fA-F0-9]*)\.openbmclapi\.933\.moe(:\d+)/')
57-
DOWNLOAD_ACCESS_LOG: bool = True
58-
DOWNLOAD_RETRY_DELAY: int = 60
57+
DOWNLOAD_ACCESS_LOG: bool = Config.get("cluster.download.access_logs")
58+
DOWNLOAD_RETRY_DELAY: int = Config.get("cluster.download.retry_delay")
5959
DOWNLOAD_FILE: bool = False
6060
DOWNLOAD_CONFIGURATION: bool = True
6161
RESPONSE_DATE = "%a, %d %b %Y %H:%M:%S GMT"

0 commit comments

Comments
 (0)