feat: do not capture warning errors
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good

This commit is contained in:
2024-10-11 14:18:52 +02:00
parent 11375e546f
commit 8983a44d9e
2 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ func (s *Server) handleError(w http.ResponseWriter, r *http.Request, status int,
err = errors.WithStack(err)
if errors.Is(err, context.Canceled) {
logger.Warn(r.Context(), err.Error(), logger.CapturedE(err))
logger.Warn(r.Context(), err.Error(), logger.E(err))
} else {
logger.Error(r.Context(), err.Error(), logger.CapturedE(err))
}