mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 22:49:40 -08:00
Merge pull request #2185 from prometheus/errhandler
kubernetes: only use one error logging handler
This commit is contained in:
commit
ae806af7d8
|
@ -46,9 +46,11 @@ type Kubernetes struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.ErrorHandlers = append(runtime.ErrorHandlers, func(err error) {
|
runtime.ErrorHandlers = []func(error){
|
||||||
|
func(err error) {
|
||||||
log.With("component", "kube_client_runtime").Errorln(err)
|
log.With("component", "kube_client_runtime").Errorln(err)
|
||||||
})
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Kubernetes discovery for the given role.
|
// New creates a new Kubernetes discovery for the given role.
|
||||||
|
|
Loading…
Reference in a new issue