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

This reverts commit 2cdf5e7395.
This commit is contained in:
Kevin Wan
2021-12-20 20:34:43 +08:00
committed by GitHub
parent 4ba2ff7cdd
commit 71d40e0c08

View File

@@ -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())