mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Add logger
This commit is contained in:
parent
c6d9eb3614
commit
1d8193b892
56 changed files with 228 additions and 192 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue