From 26b0c84d29b8ec3f5d0b0e4ea1d1c32907421173 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 2 May 2018 11:34:43 -0700 Subject: [PATCH] embed: support structured logging in "v2http" Signed-off-by: Gyuho Lee --- embed/etcd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()