Skip to content

Commit 2247930

Browse files
thriqonk8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
AddMetricsServerExtraHandler: Info takes key/value pairs
The `Info` method takes key/value pairs as arguments, not format strings.
1 parent 0845967 commit 2247930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/manager/internal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (cm *controllerManager) AddMetricsServerExtraHandler(path string, handler h
187187
return fmt.Errorf("unable to add new metrics handler because metrics endpoint has already been created")
188188
}
189189
if cm.metricsServer == nil {
190-
cm.GetLogger().Info("warn: metrics server is currently disabled, registering extra handler %q will be ignored", path)
190+
cm.GetLogger().Info("warn: metrics server is currently disabled, registering extra handler will be ignored", "path", path)
191191
return nil
192192
}
193193
if err := cm.metricsServer.AddExtraHandler(path, handler); err != nil {

0 commit comments

Comments
 (0)