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 }