From 33e0ed521d973c6567b204fce09477157aa6f238 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 22 Feb 2024 21:54:39 +1100 Subject: [PATCH] Lower use source and webseeding log levels --- sources.go | 2 +- webseed-peer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources.go b/sources.go index ed5ecbfa6c..bad73a5b0a 100644 --- a/sources.go +++ b/sources.go @@ -36,7 +36,7 @@ func (t *Torrent) UseSources(sources []string) { } level := log.Debug if err != nil && !errors.Is(err, context.Canceled) { - level = log.Warning + level = log.Info } t.logger.Levelf(level, "used torrent source %q [err=%v]", s, err) }() diff --git a/webseed-peer.go b/webseed-peer.go index 5b6632badd..ca915f3861 100644 --- a/webseed-peer.go +++ b/webseed-peer.go @@ -103,7 +103,7 @@ start: err := ws.doRequest(r) ws.requesterCond.L.Unlock() if err != nil && !errors.Is(err, context.Canceled) { - log.Printf("requester %v: error doing webseed request %v: %v", i, r, err) + ws.peer.logger.Printf("requester %v: error doing webseed request %v: %v", i, r, err) } restart = true if errors.Is(err, webseed.ErrTooFast) {