mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-24 20:57:43 +00:00
don't print an array of bytes
This commit is contained in:
parent
c2e3b81830
commit
6d0ee9c0c9
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue