Skip to content

Commit

Permalink
embed: support structured logging in "v2http"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed May 2, 2018
1 parent cccf77d commit 26b0c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embed/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 26b0c84

Please sign in to comment.