From 9acb9218c2344ba8772c615f06266d562b7c959e Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 27 Jun 2026 16:30:39 +0200 Subject: [PATCH] fix: skip logging unmatched 303 redirects --- internal/server/observability.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/server/observability.go b/internal/server/observability.go index 952e8c78..9e3510a3 100644 --- a/internal/server/observability.go +++ b/internal/server/observability.go @@ -2,6 +2,7 @@ package server import ( "mal/internal/observability" + "net/http" "time" "github.com/gin-gonic/gin" @@ -38,6 +39,9 @@ func RequestLogger() gin.HandlerFunc { if route == "/watch/proxy/stream" && status < 400 && len(privateErrors) == 0 { return } + if c.FullPath() == "" && status == http.StatusSeeOther { + return + } if route != path { fields["route"] = route }