net: logs.

This commit is contained in:
Christopher Jeffrey 2016-08-25 23:07:03 -07:00
parent acdd9c0a8a
commit d073f87874
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1399,6 +1399,10 @@ Pool.prototype.addPeer = function addPeer() {
*/
Pool.prototype.fillPeers = function fillPeers() {
this.logger.debug('Refilling peers (%d/%d).',
this.peers.pending.length + this.peers.regular.length,
this.maxPeers - 1);
for (var i = 0; i < this.maxPeers - 1; i++)
this.addPeer();
};