From 6e618fc10e1c3fd8ccdb30ac3e0e0f68f4ac34b2 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 17 May 2015 23:20:01 -0700 Subject: add debug log --- lib/torrent.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/torrent.js b/lib/torrent.js index 3e0567a..27f67f9 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -450,6 +450,8 @@ Torrent.prototype.critical = function (start, end) { Torrent.prototype._onWire = function (wire, addr) { var self = this + debug('got wire (%s)', addr || 'Unknown') + if (addr) { // Sometimes RTCPeerConnection.getStats() doesn't return an ip:port for peers var parts = addrToIPPort(addr) -- cgit v1.2.3