don't print an array of bytes

This commit is contained in:
Andre Medeiros 2021-07-13 14:24:56 -04:00
parent c2e3b81830
commit 6d0ee9c0c9

View file

@ -117,7 +117,7 @@ func (rac *AuthenticatedClient) request(r *Request) ([]byte, error) {
}
if resp.StatusCode != 200 {
rac.statsd.Incr("reddit.api.errors", r.tags, 0.1)
fmt.Println(bb) // TODO remove
fmt.Println(string(bb)) // TODO remove
// Try to parse a json error. Otherwise we generate a generic one
rerr := &Error{}
if jerr := json.Unmarshal(bb, rerr); jerr != nil {