日志调整。

pull/375/head
王良 2024-10-02 00:54:47 +08:00
parent 463c3e45cd
commit e4cce0d57a
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ async function downloadDomesticDomainAllowListAsync () {
log.info('开始下载远程 domestic-domain-allowlist.txt 文件:', remoteFileUrl)
request(remoteFileUrl, (error, response, body) => {
if (error) {
log.error('下载远程 domestic-domain-allowlist.txt 文件失败, error:', error, ', response:', response, ', body:', body)
log.error(`下载远程 domestic-domain-allowlist.txt 文件失败: ${remoteFileUrl}, error:`, error, ', response:', response, ', body:', body)
return
}
if (response && response.statusCode === 200) {
@ -88,7 +88,7 @@ async function downloadDomesticDomainAllowListAsync () {
// 保存到本地
saveDomesticDomainAllowListFile(fileTxt)
} else {
log.error('下载远程 domestic-domain-allowlist.txt 文件失败, response:', response, ', body:', body)
log.error(`下载远程 domestic-domain-allowlist.txt 文件失败: ${remoteFileUrl}, response:`, response, ', body:', body)
}
})
}

View File

@ -93,7 +93,7 @@ async function downloadPacAsync (pacConfig) {
log.info('开始下载远程 pac.txt 文件:', remotePacFileUrl)
request(remotePacFileUrl, (error, response, body) => {
if (error) {
log.error('下载远程 pac.txt 文件失败, error:', error, ', response:', response, ', body:', body)
log.error(`下载远程 pac.txt 文件失败: ${remotePacFileUrl}, error:`, error, ', response:', response, ', body:', body)
return
}
if (response && response.statusCode === 200) {
@ -121,7 +121,7 @@ async function downloadPacAsync (pacConfig) {
// 保存到本地
savePacFile(pacTxt)
} else {
log.error('下载远程 pac.txt 文件失败, response:', response, ', body:', body)
log.error(`下载远程 pac.txt 文件失败: ${remotePacFileUrl}, response:`, response, ', body:', body)
}
})
}