pkg/proxy: silence http server logs

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-05-02 12:59:29 -07:00
parent 7da365bd45
commit 3ed6c967ce

View File

@ -19,6 +19,7 @@ import (
"crypto/tls"
"fmt"
"io/ioutil"
"log"
"math/rand"
"net"
"net/http"
@ -485,6 +486,7 @@ func testServerHTTP(t *testing.T, secure, delayTx bool) {
Addr: dstAddr,
Handler: mux,
TLSConfig: tlsConfig,
ErrorLog: log.New(ioutil.Discard, "net/http", 0),
}
donec := make(chan struct{})