diff --git a/lib/peer.js b/lib/peer.js index 5c73e1a8..cd54403d 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 f959a1ca..ea422e0c 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)