diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-05-18 09:20:01 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-05-18 09:20:01 +0300 |
commit | 6e618fc10e1c3fd8ccdb30ac3e0e0f68f4ac34b2 (patch) | |
tree | ede6fe70ea8d9b32250289b566984aa7162657be | |
parent | 69beb6598c24b046c616e02acba25db22a1b464b (diff) |
add debug log
-rw-r--r-- | lib/torrent.js | 2 |
1 files changed, 2 insertions, 0 deletions
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) |