日志优化。

pull/299/head
王良 2024-04-17 11:13:58 +08:00
parent 508b10b3fd
commit bdaad352f4
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ module.exports = {
const obj = {}
obj[pathPattern] = hostnameConfig[pathPattern]
log.info(`域名 '${hostnamePattern}' 拦截配置中,新增伪脚本地址的代理配置:`, obj)
log.info(`域名 '${hostnamePattern}' 拦截配置中,新增伪脚本地址的代理配置:`, JSON.stringify(obj, null, '\t'))
} else {
// 相对地址新增响应头Content-Type替换配置
if (hostnameConfig[scriptKey]) {
@ -147,7 +147,7 @@ module.exports = {
const obj = {}
obj[scriptKey] = hostnameConfig[scriptKey]
log.info(`域名 '${hostnamePattern}' 拦截配置中,新增目标脚本地址的响应头替换配置:`, obj)
log.info(`域名 '${hostnamePattern}' 拦截配置中,新增目标脚本地址的响应头替换配置:`, JSON.stringify(obj, null, '\t'))
}
}
}