summaryrefslogtreecommitdiffstats
path: root/golib
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-09-29 14:13:30 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-09-29 14:13:30 +0200
commit503a41b247cff783aaef8b3557d162a635f13041 (patch)
tree325207cee4fc5f912d0f6571c881113de153322f /golib
parent0839b62390b61af49c9d191dea90b5679be66ffe (diff)
Changed log info on response error.
Diffstat (limited to 'golib')
-rw-r--r--golib/httpclient.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/golib/httpclient.go b/golib/httpclient.go
index 349aab9..fc1c319 100644
--- a/golib/httpclient.go
+++ b/golib/httpclient.go
@@ -272,10 +272,7 @@ func (c *HTTPClient) handleRequest(request *http.Request) (*http.Response, error
response, err := c.httpClient.Do(request)
c.log(HTTPLogLevelDebug, "HTTP RESPONSE: %v\n", response)
if err != nil {
- if c.LoggerLevel != HTTPLogLevelDebug {
- c.log(HTTPLogLevelError, "HTTP %s %v", request.Method, request.URL)
- c.log(HTTPLogLevelError, "HTTP RESPONSE: %v\n", response)
- }
+ c.log(HTTPLogLevelInfo, "%v", err)
return nil, err
}