From 22479306d0036e47234d8f0643809d1e19f99943 Mon Sep 17 00:00:00 2001 From: Jonas Weber Date: Fri, 5 Jul 2024 13:30:49 +0200 Subject: [PATCH] AddMetricsServerExtraHandler: Info takes key/value pairs The `Info` method takes key/value pairs as arguments, not format strings. --- pkg/manager/internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manager/internal.go b/pkg/manager/internal.go index 2ce02b105c..66a2d277f7 100644 --- a/pkg/manager/internal.go +++ b/pkg/manager/internal.go @@ -187,7 +187,7 @@ func (cm *controllerManager) AddMetricsServerExtraHandler(path string, handler h return fmt.Errorf("unable to add new metrics handler because metrics endpoint has already been created") } if cm.metricsServer == nil { - cm.GetLogger().Info("warn: metrics server is currently disabled, registering extra handler %q will be ignored", path) + cm.GetLogger().Info("warn: metrics server is currently disabled, registering extra handler will be ignored", "path", path) return nil } if err := cm.metricsServer.AddExtraHandler(path, handler); err != nil {