diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-08-21 07:17:05 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-08-21 07:17:05 +0300 |
commit | 23bac7d81ee48a68d352089602630384d09473fb (patch) | |
tree | ef25da3f6d99cd9426edc126ebb3c6deb25bfd3b /index.js | |
parent | d6b2d326ca7ffb21ca0812e47e3868f1af94ca0c (diff) |
print webtorrent debug message in right place
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -86,6 +86,11 @@ function WebTorrent (opts) { self.torrents = [] self.maxConns = Number(opts.maxConns) || 55 + debug( + 'new webtorrent (peerId %s, nodeId %s, port %s)', + self.peerId, self.nodeId, self.torrentPort + ) + if (self.tracker) { if (typeof self.tracker !== 'object') self.tracker = {} if (opts.rtcConfig) { @@ -134,8 +139,6 @@ function WebTorrent (opts) { self.dht = false } - debug('new webtorrent (peerId %s, nodeId %s)', self.peerId, self.nodeId) - if (typeof loadIPSet === 'function' && opts.blocklist != null) { loadIPSet(opts.blocklist, { headers: { |