kubernetes: only use one error logging handler

This commit is contained in:
Fabian Reinartz 2016-11-12 14:13:38 +01:00
parent e193579df8
commit 530cdba103
1 changed files with 5 additions and 3 deletions

View File

@ -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.