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>2016-08-21 07:17:05 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-08-21 07:17:05 +0300
commit23bac7d81ee48a68d352089602630384d09473fb (patch)
treeef25da3f6d99cd9426edc126ebb3c6deb25bfd3b /index.js
parentd6b2d326ca7ffb21ca0812e47e3868f1af94ca0c (diff)
print webtorrent debug message in right place
Diffstat (limited to 'index.js')
-rw-r--r--index.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.js b/index.js
index d0b040c..c066288 100644
--- a/index.js
+++ b/index.js
@@ -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: {