diff --git a/rest/handler/loghandler.go b/rest/handler/loghandler.go index 1c428982..57d147b8 100644 --- a/rest/handler/loghandler.go +++ b/rest/handler/loghandler.go @@ -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())