Skip to content

Commit

Permalink
Merge pull request #2874 from thriqon/patch-1
Browse files Browse the repository at this point in the history
🐛 AddMetricsServerExtraHandler: Info takes key/value pairs
  • Loading branch information
k8s-ci-robot committed Jul 7, 2024
2 parents 33446bc + 545b2b0 commit 3ec7800
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 3ec7800

Please sign in to comment.