diff options
author | John Hiesey <john@hiesey.com> | 2018-08-10 01:16:36 +0300 |
---|---|---|
committer | John Hiesey <john@hiesey.com> | 2018-08-10 01:16:36 +0300 |
commit | cda4422379a17dea1b8664aa2fba42b722ebcf84 (patch) | |
tree | 31167104d62677f7f10e29103c69558977a6a4f3 /lib | |
parent | f01ca683ec31517db90d92ea0479f4a1dd307006 (diff) |
Small debugging improvements
Diffstat (limited to 'lib')
-rw-r--r-- | lib/peer.js | 2 | ||||
-rw-r--r-- | lib/torrent.js | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/peer.js b/lib/peer.js index 5c73e1a..cd54403 100644 --- a/lib/peer.js +++ b/lib/peer.js @@ -81,7 +81,7 @@ function Peer (id, type) { self.id = id self.type = type - debug('new Peer %s', id) + debug('new %s Peer %s', type, id) self.addr = null self.conn = null diff --git a/lib/torrent.js b/lib/torrent.js index f959a1c..ea422e0 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -1671,7 +1671,6 @@ Torrent.prototype.resume = function () { } Torrent.prototype._debug = function () { - if (this.destroyed) return var args = [].slice.call(arguments) args[0] = '[' + this.client._debugId + '] [' + this._debugId + '] ' + args[0] debug.apply(null, args) |