Przeglądaj źródła

Remove unnecessary noisy logging

Lu Stadler 7 lat temu
rodzic
commit
de208780b2
1 zmienionych plików z 0 dodań i 3 usunięć
  1. 0 3
      go/fake-http/fake-http.go

+ 0 - 3
go/fake-http/fake-http.go

@ -214,16 +214,13 @@ func respondWithProxy(proxyURL string, w http.ResponseWriter, req *http.Request)
214 214
	proxyTransport := &http.Transport{
215 215
		TLSClientConfig: &tls.Config{
216 216
			GetClientCertificate: func(info *tls.CertificateRequestInfo) (*tls.Certificate, error) {
217
				log.Printf("TLS: client cert requested: %#v", info)
218 217
				if flags.proxyClientCert != "" && flags.proxyClientKey != "" {
219
					log.Printf("TLS: Loading client cert and key for proxy: %s, %s", flags.proxyClientCert, flags.proxyClientKey)
220 218
					cert, err := tls.LoadX509KeyPair(flags.proxyClientCert, flags.proxyClientKey)
221 219
					if err != nil {
222 220
						return nil, err
223 221
					}
224 222
					return &cert, nil
225 223
				}
226
				log.Println("TLS: No client cert configured, returning empty cert")
227 224
				return &tls.Certificate{}, nil
228 225
			},
229 226
			InsecureSkipVerify: true,