Skip to content

Commit

Permalink
Merge pull request #2917 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2874-to-release-0.18

[release-0.18] 🐛 AddMetricsServerExtraHandler: Info takes key/value pairs
  • Loading branch information
k8s-ci-robot authored Aug 12, 2024
2 parents 0845967 + 2247930 commit 9fe6db5
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 9fe6db5

Please sign in to comment.