From a5c90ab8b24727abb15d483f9738cf8e220d7b06 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 27 Aug 2024 12:03:09 +1000 Subject: [PATCH] Add webseed name to webseed peer logger --- torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrent.go b/torrent.go index 68cfe1f0..8bd34dbc 100644 --- a/torrent.go +++ b/torrent.go @@ -2898,7 +2898,7 @@ func (t *Torrent) addWebSeed(url string, opts ...AddWebSeedsOpt) { for _, f := range t.callbacks().NewPeer { f(&ws.peer) } - ws.peer.logger = t.logger.WithContextValue(&ws) + ws.peer.logger = t.logger.WithContextValue(&ws).WithNames("webseed") ws.peer.peerImpl = &ws if t.haveInfo() { ws.onGotInfo(t.info) -- 2.48.1