拦截器相关日志优化。

pull/356/head
王良 2 months ago
parent 45e9f69d96
commit 2375a30c9f

@ -116,6 +116,8 @@ module.exports = (serverConfig) => {
const interceptOpt = interceptOpts[regexp]
// interceptOpt.key = regexp
log.debug(`拦截器匹配path成功${rOptions.protocol}//${rOptions.hostname}:${rOptions.port}${rOptions.path}, regexp: ${regexp}, interceptOpt:`, interceptOpt)
// log.info(`interceptor matched, regexp: '${regexp}' =>`, JSON.stringify(interceptOpt), ', url:', url)
for (const impl of interceptorImpls) {
// 根据拦截配置挑选合适的拦截器来处理

Loading…
Cancel
Save