diff --git a/rest/handler/loghandler.go b/rest/handler/loghandler.go index 57d147b8..1c428982 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 { + if ok || r.Context().Err() == context.Canceled { logger.Info(buf.String()) } else { logger.Error(buf.String())