From: Matt Joiner Date: Tue, 27 May 2025 07:53:25 +0000 (+1000) Subject: Remove unused sources logger X-Git-Tag: v1.59.0~108 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2b93860f5dc91f1f8fca38cd7f61fa40dcefe474;p=btrtrc.git Remove unused sources logger --- diff --git a/client.go b/client.go index 76694ec9..574a1401 100644 --- a/client.go +++ b/client.go @@ -1425,7 +1425,6 @@ func (cl *Client) newTorrentOpt(opts AddTorrentOpts) (t *Torrent) { t.logger = cl.logger.WithDefaultLevel(log.Debug).WithNames(ihHex).WithContextText(ihHex) t.name() t._slogger = t.withSlogger(cl.slogger) - t.sourcesLogger = t.logger.WithNames("sources") if opts.ChunkSize == 0 { opts.ChunkSize = defaultChunkSize } diff --git a/torrent.go b/torrent.go index b2c5041d..365898f1 100644 --- a/torrent.go +++ b/torrent.go @@ -180,7 +180,6 @@ type Torrent struct { // Torrent sources in use keyed by the source string. activeSources sync.Map - sourcesLogger log.Logger smartBanCache smartBanCache