diff --git a/peer.go b/peer.go index 2ce7af9423..f6a6f11333 100644 --- a/peer.go +++ b/peer.go @@ -386,7 +386,7 @@ func (p *Peer) close(lock bool, lockTorrent bool) { } p.peerImpl.onClose(false) if p.t != nil { - fmt.Println("CWAP-CLS", p.t.Name()) + fmt.Println("CWAP-CLS", len(p.t.connsWithAllPieces), p.t.numActivePeers(false), p.t.Name()) p.t.decPeerPieceAvailability(p, false, false) } for _, f := range p.callbacks.PeerClosed { diff --git a/peerconn.go b/peerconn.go index e5aea31c47..15321b9682 100644 --- a/peerconn.go +++ b/peerconn.go @@ -590,7 +590,7 @@ func (cn *PeerConn) peerSentHaveNone(lockTorrent bool) error { defer cn.mu.Unlock() if !cn.peerSentHaveAll { - fmt.Println("CWAP-PSHN", cn.t.Name()) + fmt.Println("CWAP-PSHN", len(cn.t.connsWithAllPieces), cn.t.numActivePeers(false), cn.t.Name()) cn.t.decPeerPieceAvailability(&cn.Peer, false, false) } cn._peerPieces.Clear() diff --git a/torrent.go b/torrent.go index 917930b548..dd3d67a489 100644 --- a/torrent.go +++ b/torrent.go @@ -1994,7 +1994,7 @@ func (t *Torrent) deletePeerConn(c *PeerConn, lock bool) (ret bool) { } _, ret = t.conns[c] delete(t.conns, c) - fmt.Println("-CWAP-CN", len(t.connsWithAllPieces), t.numActivePeers(false), c.String()) + fmt.Println("-CWAP-CN", len(t.connsWithAllPieces), t.numActivePeers(false), t.Name(), c.String()) // Avoid adding a drop event more than once. Probably we should track whether we've generated // the drop event against the PexConnState instead. if ret {