代理连接超时,也记录失败次数。
parent
f8b094244a
commit
da753999e5
|
@ -137,6 +137,8 @@ module.exports = function createRequestHandler (createIntercepts, middlewares, e
|
||||||
const cost = new Date() - start
|
const cost = new Date() - start
|
||||||
if (rOptions.protocol === 'https:') {
|
if (rOptions.protocol === 'https:') {
|
||||||
log.info(`代理请求返回: ${url}, cost: ${cost} ms`)
|
log.info(`代理请求返回: ${url}, cost: ${cost} ms`)
|
||||||
|
} else {
|
||||||
|
log.info(`请求返回: ${url}, cost: ${cost} ms`)
|
||||||
}
|
}
|
||||||
// console.log('request:', proxyReq, proxyReq.socket)
|
// console.log('request:', proxyReq, proxyReq.socket)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue