From d2e14847628b6c54c3cdbbe733da0c71a908a6d3 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 2 May 2018 11:35:00 -0700 Subject: [PATCH] integration: support structured logging in "v2http" Signed-off-by: Gyuho Lee --- integration/cluster.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/integration/cluster.go b/integration/cluster.go index 81f47cf72a2..7dba9f26ff5 100644 --- a/integration/cluster.go +++ b/integration/cluster.go @@ -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()