From 1e275a22ef3ff98fb281dad0d00c051e83fa5b71 Mon Sep 17 00:00:00 2001 From: Nicolas Leclercq Date: Fri, 11 Sep 2015 17:17:19 +0200 Subject: [PATCH] Remove debug trace --- weather.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/weather.go b/weather.go index 154122c..7579017 100644 --- a/weather.go +++ b/weather.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "net/http" - "net/http/httputil" "net/url" "reflect" "strings" @@ -164,8 +163,8 @@ func (c *Client) doHTTPGet(url string, data url.Values) (*http.Response, error) func (c *Client) doHTTP(req *http.Request) (*http.Response, error) { // debug - debug, _ := httputil.DumpRequestOut(req, true) - fmt.Printf("%s\n\n", debug) + //debug, _ := httputil.DumpRequestOut(req, true) + //fmt.Printf("%s\n\n", debug) var err error c.httpResponse, err = c.httpClient.Do(req) @@ -184,8 +183,8 @@ func processHTTPResponse(resp *http.Response, err error, holder interface{}) err } // debug - debug, _ := httputil.DumpResponse(resp, true) - fmt.Printf("%s\n\n", debug) + //debug, _ := httputil.DumpResponse(resp, true) + //fmt.Printf("%s\n\n", debug) // check http return code if resp.StatusCode != 200 {