]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix webseed.Client.Logger not being set for content length checks
authorMatt Joiner <anacrolix@gmail.com>
Mon, 16 Jun 2025 11:05:32 +0000 (21:05 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 16 Jun 2025 11:05:32 +0000 (21:05 +1000)
torrent.go

index 1df519720a38bc144e990f164c45baca8cbd4718..0b2f01b4dffd993b95014db06258d1f9a64c35d7 100644 (file)
@@ -3067,6 +3067,7 @@ func (t *Torrent) addWebSeed(url string, opts ...AddWebSeedsOpt) bool {
        }
        ws.peer.logger = t.logger.WithContextValue(&ws).WithNames("webseed")
        ws.peer.slogger = t.slogger().With("webseed", url)
+       ws.client.Logger = ws.peer.slogger
        // TODO: Abstract out a common struct initializer for this...
        ws.peer.legacyPeerImpl = &ws
        ws.peer.peerImpl = &ws