日志调整。
parent
463c3e45cd
commit
e4cce0d57a
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue