Skip to content

Commit

Permalink
fix log.Debug in httpclient
Browse files Browse the repository at this point in the history
  • Loading branch information
gondor committed Dec 29, 2016
1 parent c8324f2 commit fabdee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (h *httpClient) httpCall(method Method, url string, data interface{}, resul

func (h *httpClient) invoke(r *Request) *Response {

log.Debug("%s - %s, Body:\n%s", r.method.String(), r.url, r.data)
log.Debugf("%s - %s, Body:\n%s", r.method.String(), r.url, r.data)

request, err := http.NewRequest(r.method.String(), r.url, strings.NewReader(r.data))

Expand Down Expand Up @@ -216,7 +216,7 @@ func (h *httpClient) invoke(r *Request) *Response {
content = string(rc)
}

log.Debug("Status: %v, RAW: %s", status, content)
log.Debugf("Status: %v, RAW: %s", status, content)

if status >= 200 && status < 300 {
if r.result != nil {
Expand Down

0 comments on commit fabdee6

Please sign in to comment.