From 9452c282b7951cb1c921a3c0e886bd01a9a01bf1 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 16 Jun 2025 21:05:32 +1000 Subject: [PATCH] Fix webseed.Client.Logger not being set for content length checks --- torrent.go | 1 + 1 file changed, 1 insertion(+) diff --git a/torrent.go b/torrent.go index 1df51972..0b2f01b4 100644 --- a/torrent.go +++ b/torrent.go @@ -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 -- 2.51.0