From e04e58d8b3be746fdf3ffb902f6ed155888823c8 Mon Sep 17 00:00:00 2001 From: Vibhu Pandey Date: Thu, 20 Mar 2025 11:01:01 +0530 Subject: [PATCH] fix(apiserver): remove redundant logs by default (#7375) --- conf/example.yaml | 2 ++ pkg/apiserver/config.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/conf/example.yaml b/conf/example.yaml index 0375f72928..4f07c56329 100644 --- a/conf/example.yaml +++ b/conf/example.yaml @@ -82,6 +82,8 @@ apiserver: # List of routes to exclude from request responselogging. excluded_routes: - /api/v1/health + - /api/v1/version + - / ##################### TelemetryStore ##################### diff --git a/pkg/apiserver/config.go b/pkg/apiserver/config.go index 79a4259589..e505c312c2 100644 --- a/pkg/apiserver/config.go +++ b/pkg/apiserver/config.go @@ -43,6 +43,8 @@ func newConfig() factory.Config { Logging: Logging{ ExcludedRoutes: []string{ "/api/v1/health", + "/api/v1/version", + "/", }, }, }