integration: silence http server logs
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>release-3.4
parent
58b7ab97eb
commit
1d18f45caf
|
@ -19,6 +19,7 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -818,8 +819,12 @@ func (m *member) Launch() error {
|
||||||
}
|
}
|
||||||
hs := &httptest.Server{
|
hs := &httptest.Server{
|
||||||
Listener: ll,
|
Listener: ll,
|
||||||
Config: &http.Server{Handler: h, TLSConfig: peerTLScfg},
|
Config: &http.Server{
|
||||||
TLS: peerTLScfg,
|
Handler: h,
|
||||||
|
TLSConfig: peerTLScfg,
|
||||||
|
ErrorLog: log.New(ioutil.Discard, "net/http", 0),
|
||||||
|
},
|
||||||
|
TLS: peerTLScfg,
|
||||||
}
|
}
|
||||||
hs.Start()
|
hs.Start()
|
||||||
|
|
||||||
|
@ -845,6 +850,7 @@ func (m *member) Launch() error {
|
||||||
m.s,
|
m.s,
|
||||||
m.ServerConfig.ReqTimeout(),
|
m.ServerConfig.ReqTimeout(),
|
||||||
),
|
),
|
||||||
|
ErrorLog: log.New(ioutil.Discard, "net/http", 0),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if m.ClientTLSInfo == nil {
|
if m.ClientTLSInfo == nil {
|
||||||
|
|
Loading…
Reference in New Issue