From 9c5ac2927a99d4196e3865a144d3681a41238c69 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Thu, 16 Oct 2025 09:57:27 +0800 Subject: [PATCH] fix(request_logging): update logging conditions to include only /v1 paths --- internal/api/middleware/request_logging.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/api/middleware/request_logging.go b/internal/api/middleware/request_logging.go index 772221b2..b866e00c 100644 --- a/internal/api/middleware/request_logging.go +++ b/internal/api/middleware/request_logging.go @@ -19,7 +19,12 @@ import ( func RequestLoggingMiddleware(logger logging.RequestLogger) gin.HandlerFunc { return func(c *gin.Context) { path := c.Request.URL.Path - if strings.HasPrefix(path, "/v0/management") || path == "/keep-alive" { + shouldLog := false + if strings.HasPrefix(path, "/v1") { + shouldLog = true + } + + if !shouldLog { c.Next() return }