mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: silence http server logs
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
58b7ab97eb
commit
1d18f45caf
@ -19,6 +19,7 @@ import (
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"math/rand"
|
||||
"net"
|
||||
"net/http"
|
||||
@ -818,8 +819,12 @@ func (m *member) Launch() error {
|
||||
}
|
||||
hs := &httptest.Server{
|
||||
Listener: ll,
|
||||
Config: &http.Server{Handler: h, TLSConfig: peerTLScfg},
|
||||
TLS: peerTLScfg,
|
||||
Config: &http.Server{
|
||||
Handler: h,
|
||||
TLSConfig: peerTLScfg,
|
||||
ErrorLog: log.New(ioutil.Discard, "net/http", 0),
|
||||
},
|
||||
TLS: peerTLScfg,
|
||||
}
|
||||
hs.Start()
|
||||
|
||||
@ -845,6 +850,7 @@ func (m *member) Launch() error {
|
||||
m.s,
|
||||
m.ServerConfig.ReqTimeout(),
|
||||
),
|
||||
ErrorLog: log.New(ioutil.Discard, "net/http", 0),
|
||||
},
|
||||
}
|
||||
if m.ClientTLSInfo == nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user