Browse Source

Merge pull request #2185 from prometheus/errhandler

kubernetes: only use one error logging handler
pull/2190/head
Fabian Reinartz 8 years ago committed by GitHub
parent
commit
ae806af7d8
  1. 8
      retrieval/discovery/kubernetes/kubernetes.go

8
retrieval/discovery/kubernetes/kubernetes.go

@ -46,9 +46,11 @@ type Kubernetes struct {
}
func init() {
runtime.ErrorHandlers = append(runtime.ErrorHandlers, func(err error) {
log.With("component", "kube_client_runtime").Errorln(err)
})
runtime.ErrorHandlers = []func(error){
func(err error) {
log.With("component", "kube_client_runtime").Errorln(err)
},
}
}
// New creates a new Kubernetes discovery for the given role.

Loading…
Cancel
Save