comment out noisy log
This commit is contained in:
parent
02811497b6
commit
33e1b52fc0
|
@ -4,7 +4,6 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -48,7 +47,7 @@ func getHeliumApi(path string, params *map[string]string) ([]byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// query the api
|
// query the api
|
||||||
log.Printf("querying %v", req.URL.String())
|
// log.Printf("querying %v", req.URL.String())
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to query %v: %v", req.URL.String(), err)
|
return nil, fmt.Errorf("failed to query %v: %v", req.URL.String(), err)
|
||||||
|
@ -98,7 +97,7 @@ func getHeliumApiWithCursor(path string, params *map[string]string) ([][]byte, e
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
// read the response body and add it to the result array
|
// read the response body and add it to the result array
|
||||||
log.Printf("querying %v", req.URL.String())
|
// log.Printf("querying %v", req.URL.String())
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to read response body of %v: %v", req.URL.String(), err)
|
return nil, fmt.Errorf("failed to read response body of %v: %v", req.URL.String(), err)
|
||||||
|
|
Reference in New Issue