Skip to content

Commit

Permalink
integration: support structured logging in "v2http"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed May 2, 2018
1 parent 080bac7 commit a6991fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion integration/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,13 @@ func (m *member) Launch() error {
for _, ln := range m.ClientListeners {
hs := &httptest.Server{
Listener: ln,
Config: &http.Server{Handler: v2http.NewClientHandler(m.s, m.ServerConfig.ReqTimeout())},
Config: &http.Server{
Handler: v2http.NewClientHandler(
m.Logger,
m.s,
m.ServerConfig.ReqTimeout(),
),
},
}
if m.ClientTLSInfo == nil {
hs.Start()
Expand Down

0 comments on commit a6991fc

Please sign in to comment.