mirror of
https://github.com/steinhobelgruen/netatmo-api-go.git
synced 2024-11-21 22:23:55 +00:00
Remove debug trace
This commit is contained in:
parent
82ab0252b0
commit
1e275a22ef
|
@ -4,7 +4,6 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httputil"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"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) {
|
func (c *Client) doHTTP(req *http.Request) (*http.Response, error) {
|
||||||
|
|
||||||
// debug
|
// debug
|
||||||
debug, _ := httputil.DumpRequestOut(req, true)
|
//debug, _ := httputil.DumpRequestOut(req, true)
|
||||||
fmt.Printf("%s\n\n", debug)
|
//fmt.Printf("%s\n\n", debug)
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
c.httpResponse, err = c.httpClient.Do(req)
|
c.httpResponse, err = c.httpClient.Do(req)
|
||||||
|
@ -184,8 +183,8 @@ func processHTTPResponse(resp *http.Response, err error, holder interface{}) err
|
||||||
}
|
}
|
||||||
|
|
||||||
// debug
|
// debug
|
||||||
debug, _ := httputil.DumpResponse(resp, true)
|
//debug, _ := httputil.DumpResponse(resp, true)
|
||||||
fmt.Printf("%s\n\n", debug)
|
//fmt.Printf("%s\n\n", debug)
|
||||||
|
|
||||||
// check http return code
|
// check http return code
|
||||||
if resp.StatusCode != 200 {
|
if resp.StatusCode != 200 {
|
||||||
|
|
Loading…
Reference in a new issue