拦截器相关日志优化。
							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…
	
		Reference in New Issue