From: Matt Joiner Date: Tue, 29 Apr 2025 06:22:15 +0000 (+1000) Subject: Raise torrent source failure log level to Warning X-Git-Tag: v1.59.0~179 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e6d61fe76468c7a6afd37b21f9dcbe056a2ac01b;p=btrtrc.git Raise torrent source failure log level to Warning --- diff --git a/sources.go b/sources.go index bad73a5b..9aeb8007 100644 --- a/sources.go +++ b/sources.go @@ -27,7 +27,6 @@ func (t *Torrent) UseSources(sources []string) { if loaded { continue } - s := s go func() { err := t.useActiveTorrentSource(s) _, loaded := t.activeSources.LoadAndDelete(s) @@ -36,7 +35,7 @@ func (t *Torrent) UseSources(sources []string) { } level := log.Debug if err != nil && !errors.Is(err, context.Canceled) { - level = log.Info + level = log.Warning } t.logger.Levelf(level, "used torrent source %q [err=%v]", s, err) }()