diff --git a/backend/pkg/logger/logger.go b/backend/pkg/logger/logger.go index c086d0f..d7334dc 100644 --- a/backend/pkg/logger/logger.go +++ b/backend/pkg/logger/logger.go @@ -57,6 +57,11 @@ func GinLogger(log *zap.Logger) gin.HandlerFunc { c.Next() + // 跳过健康检查/探针路径的日志 + if path == "/version" || path == "/health" || path == "/healthz" { + return + } + cost := time.Since(start) status := c.Writer.Status()