diff --git a/internal/proxy/server.go b/internal/proxy/server.go index aca2c48..efd2be9 100644 --- a/internal/proxy/server.go +++ b/internal/proxy/server.go @@ -232,7 +232,12 @@ func (s *Server) handleDefault(w http.ResponseWriter, r *http.Request) { func (s *Server) handleError(w http.ResponseWriter, r *http.Request, status int, err error) { err = errors.WithStack(err) - logger.Error(r.Context(), err.Error(), logger.CapturedE(err)) + + if errors.Is(err, context.Canceled) { + logger.Warn(r.Context(), err.Error(), logger.CapturedE(err)) + } else { + logger.Error(r.Context(), err.Error(), logger.CapturedE(err)) + } s.renderErrorPage(w, r, err, status, http.StatusText(status)) }