Explorar o código

pkg/proxy: silence http server logs

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee %!s(int64=8) %!d(string=hai) anos
pai
achega
3ed6c967ce
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      pkg/proxy/server_test.go

+ 2 - 0
pkg/proxy/server_test.go

@@ -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"
@@ -485,6 +486,7 @@ func testServerHTTP(t *testing.T, secure, delayTx bool) {
 		Addr:      dstAddr,
 		Addr:      dstAddr,
 		Handler:   mux,
 		Handler:   mux,
 		TLSConfig: tlsConfig,
 		TLSConfig: tlsConfig,
+		ErrorLog:  log.New(ioutil.Discard, "net/http", 0),
 	}
 	}
 
 
 	donec := make(chan struct{})
 	donec := make(chan struct{})