diff --git a/backend/internal/middleware/logging.go b/backend/internal/middleware/logging.go index 41b15ed..107dd2e 100644 --- a/backend/internal/middleware/logging.go +++ b/backend/internal/middleware/logging.go @@ -9,8 +9,15 @@ import ( func Logging() gin.HandlerFunc { return func(c *gin.Context) { - start := time.Now() path := c.Request.URL.Path + + // Skip logging for health/readiness probes to reduce noise. + if path == "/healthz" || path == "/readyz" { + c.Next() + return + } + + start := time.Now() query := c.Request.URL.RawQuery c.Next()