etcdmain: silence http server logs
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>release-3.4
parent
e7e31e9529
commit
7da365bd45
|
@ -17,6 +17,7 @@ package etcdmain
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"math"
|
||||
"net"
|
||||
|
@ -388,7 +389,10 @@ func mustHTTPListener(lg *zap.Logger, m cmux.CMux, tlsinfo *transport.TLSInfo, c
|
|||
}
|
||||
lg.Info("gRPC proxy enabled pprof", zap.String("path", debugutil.HTTPPrefixPProf))
|
||||
}
|
||||
srvhttp := &http.Server{Handler: httpmux}
|
||||
srvhttp := &http.Server{
|
||||
Handler: httpmux,
|
||||
ErrorLog: log.New(ioutil.Discard, "net/http", 0),
|
||||
}
|
||||
|
||||
if tlsinfo == nil {
|
||||
return srvhttp, m.Match(cmux.HTTP1())
|
||||
|
|
Loading…
Reference in New Issue