diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-12-12 11:03:36 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-12-12 11:03:36 +0100 |
commit | afc001a4ae2aac6161616661622285925eb59076 (patch) | |
tree | 8b8ee0d8e107ab07d9800f37d6a988206f737715 | |
parent | 2c15ed83257092e1bfb91a5c0300e06cf77e862b (diff) |
Added error about client ID or CSRF in log.
-rw-r--r-- | golib/httpclient.go | 1 |
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 } |