diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-08-21 07:17:27 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-08-21 07:17:27 +0300 |
commit | 6a67a64a68ff2bcadb41dcf5dd463c1ee93e0186 (patch) | |
tree | c21b755aef223c454e8df782d8777b2972840b57 | |
parent | 23bac7d81ee48a68d352089602630384d09473fb (diff) |
better debug id
-rw-r--r-- | lib/torrent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index a695d07..78c6375 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -66,7 +66,7 @@ function Torrent (torrentId, client, opts) { EventEmitter.call(this) this.client = client - this._debugId = this.client.peerId.slice(32) + this._debugId = this.client.peerId.toString('hex').substring(0, 7) this._debug('new torrent') |