Skip to content

Commit

Permalink
Add webseed name to webseed peer logger
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Aug 27, 2024
1 parent ef889a2 commit a5c90ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5c90ab

Please sign in to comment.