Skip to content

Commit

Permalink
AddMetricsServerExtraHandler: Info takes key/value pairs
Browse files Browse the repository at this point in the history
The `Info` method takes key/value pairs as arguments, not format strings.
  • Loading branch information
thriqon authored and k8s-infra-cherrypick-robot committed Aug 12, 2024
1 parent 0845967 commit 2247930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2247930

Please sign in to comment.