代理连接超时,也记录失败次数。

pull/333/head
王良 2024-08-20 15:57:51 +08:00
parent f8b094244a
commit da753999e5
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,8 @@ module.exports = function createRequestHandler (createIntercepts, middlewares, e
const cost = new Date() - start
if (rOptions.protocol === 'https:') {
log.info(`代理请求返回: ${url}, cost: ${cost} ms`)
} else {
log.info(`请求返回: ${url}, cost: ${cost} ms`)
}
// console.log('request:', proxyReq, proxyReq.socket)