Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-05-18 09:20:01 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-05-18 09:20:01 +0300
commit6e618fc10e1c3fd8ccdb30ac3e0e0f68f4ac34b2 (patch)
treeede6fe70ea8d9b32250289b566984aa7162657be
parent69beb6598c24b046c616e02acba25db22a1b464b (diff)
add debug log
-rw-r--r--lib/torrent.js2
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)