Remove annoying logs
This commit is contained in:
@@ -150,9 +150,6 @@ func (r *HTTPClient) Do(req *http.Request) (*http.Response, error) {
|
||||
resp.Body.Close()
|
||||
}
|
||||
r.replaceHostIfNeeded(req) // needed for ipv6
|
||||
if !strings.Contains(req.URL.Host, "api.real-debrid.com") {
|
||||
r.log.Debugf("downloading %s", req.URL)
|
||||
}
|
||||
resp, err = r.client.Do(req)
|
||||
if resp != nil && resp.StatusCode/100 >= 4 {
|
||||
body, _ := io.ReadAll(resp.Body)
|
||||
|
||||
@@ -93,6 +93,10 @@ func NewLogger(logPath string) *Logger {
|
||||
return zLogger
|
||||
}
|
||||
|
||||
func (l *Logger) Printf(format string, v ...interface{}) {
|
||||
l.SugaredLogger.Infof(format, v...)
|
||||
}
|
||||
|
||||
func (l *Logger) Named(name string) *Logger {
|
||||
return &Logger{
|
||||
SugaredLogger: l.SugaredLogger.Named(name),
|
||||
|
||||
Reference in New Issue
Block a user