projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef889a2
)
Add webseed name to webseed peer logger
author
Matt Joiner <anacrolix@gmail.com>
Tue, 27 Aug 2024 02:03:09 +0000 (12:03 +1000)
committer
Matt Joiner <anacrolix@gmail.com>
Tue, 27 Aug 2024 02:03:09 +0000 (12:03 +1000)
torrent.go
patch
|
blob
|
history
diff --git
a/torrent.go
b/torrent.go
index 68cfe1f0bec2fea03c57d5e4d1267037be63bb8a..8bd34dbcf99c4f122301221707936b8ff4b70368 100644
(file)
--- 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)