]> Sergey Matveev's repositories - btrtrc.git/blobdiff - torrent.go
Fix panic in webseed request rejection logging
[btrtrc.git] / torrent.go
index bd4a025e9fa814319414c5907b1cffd0b2cedd24..749a5dae7d48d0238a45e7c5219958c385cb54b4 100644 (file)
@@ -2049,6 +2049,7 @@ func (t *Torrent) addWebSeed(url string) {
                },
                requests: make(map[request]webseed.Request, maxRequests),
        }
+       ws.peer.logger = t.logger.WithContextValue(&ws)
        ws.peer.peerImpl = &ws
        if t.haveInfo() {
                ws.onGotInfo(t.info)