]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove unused sources logger
authorMatt Joiner <anacrolix@gmail.com>
Tue, 27 May 2025 07:53:25 +0000 (17:53 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 27 May 2025 07:53:25 +0000 (17:53 +1000)
client.go
torrent.go

index 76694ec9c1007f696a336ecb67d819ae0c30223f..574a1401ab62c65fd4835cf7033c0740121c043f 100644 (file)
--- 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
        }
index b2c5041db6d14d0b4f71114067879a54f654198d..365898f1c11a2cff95f7186c7ea553d1e5717b8c 100644 (file)
@@ -180,7 +180,6 @@ type Torrent struct {
 
        // Torrent sources in use keyed by the source string.
        activeSources sync.Map
-       sourcesLogger log.Logger
 
        smartBanCache smartBanCache