Browse Source

拦截器相关日志优化。

pull/356/head
王良 2 months ago
parent
commit
2375a30c9f
  1. 2
      packages/mitmproxy/src/options.js

2
packages/mitmproxy/src/options.js

@ -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