From 2b9052ca8724f375e229ed608779c98f65b672fe Mon Sep 17 00:00:00 2001 From: sentriz Date: Wed, 13 Sep 2023 20:34:32 +0100 Subject: [PATCH] remove lastfm debug prints --- scrobble/lastfm/client.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scrobble/lastfm/client.go b/scrobble/lastfm/client.go index d747141..765285f 100644 --- a/scrobble/lastfm/client.go +++ b/scrobble/lastfm/client.go @@ -6,9 +6,7 @@ import ( "encoding/xml" "errors" "fmt" - "log" "net/http" - "net/http/httputil" "net/url" "sort" @@ -65,13 +63,9 @@ func (c *Client) makeRequest(method string, params url.Values) (LastFM, error) { decoder := xml.NewDecoder(resp.Body) lastfm := LastFM{} if err = decoder.Decode(&lastfm); err != nil { - respBytes, _ := httputil.DumpResponse(resp, true) - log.Printf("received bad lastfm response:\n%s", string(respBytes)) return LastFM{}, fmt.Errorf("decoding: %w", err) } if lastfm.Error.Code != 0 { - respBytes, _ := httputil.DumpResponse(resp, true) - log.Printf("received bad lastfm response:\n%s", string(respBytes)) return LastFM{}, fmt.Errorf("%v: %w", lastfm.Error.Value, ErrLastFM) } return lastfm, nil