diff --git a/embed/etcd.go b/embed/etcd.go index 8d537800ce1..3481bfbaa45 100644 --- a/embed/etcd.go +++ b/embed/etcd.go @@ -635,9 +635,9 @@ func (e *Etcd) serveClients() (err error) { if e.Config().EnableV2 { if len(e.Config().ExperimentalEnableV2V3) > 0 { srv := v2v3.NewServer(e.cfg.logger, v3client.New(e.Server), e.cfg.ExperimentalEnableV2V3) - h = v2http.NewClientHandler(srv, e.Server.Cfg.ReqTimeout()) + h = v2http.NewClientHandler(e.GetLogger(), srv, e.Server.Cfg.ReqTimeout()) } else { - h = v2http.NewClientHandler(e.Server, e.Server.Cfg.ReqTimeout()) + h = v2http.NewClientHandler(e.GetLogger(), e.Server, e.Server.Cfg.ReqTimeout()) } } else { mux := http.NewServeMux()