diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-12-15 18:55:57 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-12-15 18:55:57 -0800 |
commit | 1d8193b892bf63db6b91c66b9d048873bf1bc4cf (patch) | |
tree | 4ca54691f7fab88f73f657f005e26d75ae5f0058 /http | |
parent | c6d9eb361454b70406cf6573b284d5e99ba3a2d2 (diff) |
Add logger
Diffstat (limited to 'http')
-rw-r--r-- | http/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/client.go b/http/client.go index 602cdbd..8473826 100644 --- a/http/client.go +++ b/http/client.go @@ -7,12 +7,12 @@ package http import ( "crypto/tls" "fmt" - "log" "net/http" "net/url" "time" "github.com/miniflux/miniflux/helper" + "github.com/miniflux/miniflux/logger" ) const userAgent = "Miniflux <https://miniflux.net/>" @@ -47,7 +47,7 @@ func (c *Client) Get() (*Response, error) { ContentType: resp.Header.Get("Content-Type"), } - log.Println("[HttpClient:Get]", + logger.Debug("[HttpClient:Get]", "OriginalURL:", c.url, "StatusCode:", response.StatusCode, "ETag:", response.ETag, |