aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-12 11:03:36 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-12 11:03:36 +0100
commitafc001a4ae2aac6161616661622285925eb59076 (patch)
tree8b8ee0d8e107ab07d9800f37d6a988206f737715
parent2c15ed83257092e1bfb91a5c0300e06cf77e862b (diff)
Added error about client ID or CSRF in log.
-rw-r--r--golib/httpclient.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/golib/httpclient.go b/golib/httpclient.go
index 24cfed1..6662b2d 100644
--- a/golib/httpclient.go
+++ b/golib/httpclient.go
@@ -88,6 +88,7 @@ func HTTPNewClient(baseURL string, cfg HTTPClientConfig) (*HTTPClient, error) {
}
if err := client.getCidAndCsrf(); err != nil {
+ client.log(HTTPLogLevelError, "Cannot retrieve Client ID and/or CSRF: %v", err)
return &client, err
}