From 1cb301acdf77babcca15972ba841cbee95db2655 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Fri, 15 Nov 2024 10:51:25 -0500 Subject: [PATCH] No need to log 404 --- pkg/rest/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/rest/api.go b/pkg/rest/api.go index 339ed36..cfbd24e 100644 --- a/pkg/rest/api.go +++ b/pkg/rest/api.go @@ -42,6 +42,7 @@ type errResponse struct { func (e *errResponse) Render(w http.ResponseWriter, r *http.Request) error { switch e.Code { + case http.StatusNotFound: default: log.Error().Str("path", r.URL.Path).Err(e.Err).Int("code", e.Code).Str("msg", e.Error).Msg("request failed") }