From c07b0827d8ddbdf52315a4d724b7eab0e91abf50 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 14 Nov 2010 14:02:50 -0500 Subject: [PATCH] Revert "Add logging for proxy errors." This reverts commit 4b45ea0ac72239e1b0b2c7a1be7dc7eae8ce9a00. --- src/server.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/server.go b/src/server.go index f6fb034..07674a0 100644 --- a/src/server.go +++ b/src/server.go @@ -107,7 +107,6 @@ func proxyHandler(response http.ResponseWriter, request *http.Request) { func performProxy(url *http.URL, response http.ResponseWriter, origRequest *http.Request) os.Error { conn, err := net.Dial("tcp", "", url.Host + ":http") if err != nil { - fmt.Printf("Could not dial: %v\n", err) return err } client := http.NewClientConn(conn, nil) @@ -117,13 +116,11 @@ func performProxy(url *http.URL, response http.ResponseWriter, origRequest *http request.UserAgent = origRequest.UserAgent err = client.Write(&request) if err != nil { - fmt.Printf("Could not proxy: %v\n", err) return err } var proxyResponse *http.Response proxyResponse, err = client.Read() if err != nil && err != http.ErrPersistEOF { - fmt.Printf("Could not read proxied response: %v\n", err) return err } _, err = io.Copy(response, proxyResponse.Body) -- 2.43.5