Revert "排除客户端中断导致的503错误 (#1343)" (#1351)

This reverts commit 2cdf5e7395.
master
Kevin Wan 3 years ago committed by GitHub
parent 4ba2ff7cdd
commit 71d40e0c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -185,7 +185,7 @@ func logBrief(r *http.Request, code int, timer *utils.ElapsedTimer, logs *intern
buf.WriteString(fmt.Sprintf("\n%s", body))
}
if ok || r.Context().Err() == context.Canceled {
if ok {
logger.Info(buf.String())
} else {
logger.Error(buf.String())

Loading…
Cancel
Save