Skip to content

Commit ec18893

Browse files
author
Dirk Hoekstra
committed
Remove debug print lines
1 parent f5e21e5 commit ec18893

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

client.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"bytes"
1414
"encoding/json"
1515
"errors"
16-
"fmt"
1716
"io/ioutil"
1817
"log"
1918
"net/http"
@@ -84,13 +83,6 @@ func (c *Client) request(v interface{}, path string, data interface{}) error {
8483
}
8584
}
8685

87-
// TODO remove this
88-
if data != nil {
89-
fmt.Printf("HTTP REQUEST: %s %s %s\n", method, uri.String(), jsonEncoded)
90-
} else {
91-
fmt.Printf("HTTP REQUEST: %s %s\n", method, uri.String())
92-
}
93-
9486
response, err := c.HTTPClient.Do(request)
9587
if err != nil {
9688
return err
@@ -107,9 +99,6 @@ func (c *Client) request(v interface{}, path string, data interface{}) error {
10799
log.Printf("HTTP RESPONSE: %s", string(responseBody))
108100
}
109101

110-
// TODO remove this
111-
fmt.Printf("HTTP RESPONSE: %s\n", string(responseBody))
112-
113102
// Status code 500 is a server error and means nothing can be done at this
114103
// point.
115104
if response.StatusCode == 500 {

0 commit comments

Comments
 (0)