Browse Source

integration: support structured logging in "v2http"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
d2e1484762
1 changed files with 7 additions and 1 deletions
  1. 7 1
      integration/cluster.go

+ 7 - 1
integration/cluster.go

@@ -839,7 +839,13 @@ func (m *member) Launch() error {
 	for _, ln := range m.ClientListeners {
 	for _, ln := range m.ClientListeners {
 		hs := &httptest.Server{
 		hs := &httptest.Server{
 			Listener: ln,
 			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 {
 		if m.ClientTLSInfo == nil {
 			hs.Start()
 			hs.Start()