优化一处错误提示

This commit is contained in:
刘祥超
2022-01-09 15:32:02 +08:00
parent ecaa45db34
commit ff2826ab47

View File

@@ -195,7 +195,9 @@ func (this *HTTPRequest) doReverseProxy() {
} else {
this.write50x(err, http.StatusBadGateway, true)
}
remotelogs.Warn("HTTP_REQUEST_REVERSE_PROXY", this.RawReq.URL.String()+"': "+err.Error())
if httpErr.Err != io.EOF {
remotelogs.Warn("HTTP_REQUEST_REVERSE_PROXY", this.RawReq.URL.String()+"': "+err.Error())
}
} else {
// 是否为客户端方面的错误
isClientError := false