From 2b93860f5dc91f1f8fca38cd7f61fa40dcefe474 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 27 May 2025 17:53:25 +1000 Subject: [PATCH] Remove unused sources logger --- client.go | 1 - torrent.go | 1 - 2 files changed, 2 deletions(-) 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 -- 2.51.0