Give etcd client logger a name

Logic copied from https://github.com/etcd-io/etcd/blob/v3.5.4/client/v3/client.go#L374

Signed-off-by: Nic Cope <nicc@rk0n.org>
This commit is contained in:
Nic Cope 2022-07-29 14:24:17 -07:00
parent 0c81eabb85
commit f54d260633

View File

@ -86,7 +86,7 @@ func init() {
if err != nil {
l = zap.NewNop()
}
etcd3ClientLogger = l
etcd3ClientLogger = l.Named("etcd-client")
}
func newETCD3HealthCheck(c storagebackend.Config, stopCh <-chan struct{}) (func() error, error) {