diff --git a/pkg/api/vendors/coingecko/v3/v3.go b/pkg/api/vendors/coingecko/v3/v3.go index 5f3ead7..7cc3155 100644 --- a/pkg/api/vendors/coingecko/v3/v3.go +++ b/pkg/api/vendors/coingecko/v3/v3.go @@ -9,11 +9,8 @@ import ( "net/url" "strings" - "os" - "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/format" "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3/types" - log "github.com/sirupsen/logrus" ) var baseURL = "https://api.coingecko.com/api/v3" @@ -34,11 +31,6 @@ func NewClient(httpClient *http.Client) *Client { // helper // doReq HTTP client func doReq(req *http.Request, client *http.Client) ([]byte, error) { - debugHttp := os.Getenv("DEBUG_HTTP") != "" - if debugHttp { - log.Debugf("doReq %s %s", req.Method, req.URL) - } - resp, err := client.Do(req) if err != nil { return nil, err @@ -49,10 +41,6 @@ func doReq(req *http.Request, client *http.Client) ([]byte, error) { return nil, err } if 200 != resp.StatusCode { - if debugHttp { - log.Warnf("doReq Got Status '%s' from %s %s", resp.Status, req.Method, req.URL) - log.Debugf("doReq Got Body: %s", body) - } return nil, fmt.Errorf("%s", body) } return body, nil