From 9cf2dffa67850aead29f47493a2f529c7f5defdf Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 20 Jan 2017 18:34:33 -0800 Subject: [PATCH] debug: better debug names --- client.js | 2 +- lib/server/swarm.js | 2 +- server.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.js b/client.js index c72f8d5..cea05be 100644 --- a/client.js +++ b/client.js @@ -1,7 +1,7 @@ module.exports = Client var Buffer = require('safe-buffer').Buffer -var debug = require('debug')('bittorrent-tracker') +var debug = require('debug')('bittorrent-tracker:client') var EventEmitter = require('events').EventEmitter var extend = require('xtend') var inherits = require('inherits') diff --git a/lib/server/swarm.js b/lib/server/swarm.js index 3d987bf..f8d8a44 100644 --- a/lib/server/swarm.js +++ b/lib/server/swarm.js @@ -1,6 +1,6 @@ module.exports = Swarm -var debug = require('debug')('bittorrent-tracker') +var debug = require('debug')('bittorrent-tracker:swarm') var LRU = require('lru') var randomIterate = require('random-iterate') diff --git a/server.js b/server.js index 87d08a1..291357f 100644 --- a/server.js +++ b/server.js @@ -2,7 +2,7 @@ module.exports = Server var Buffer = require('safe-buffer').Buffer var bencode = require('bencode') -var debug = require('debug')('bittorrent-tracker') +var debug = require('debug')('bittorrent-tracker:server') var dgram = require('dgram') var EventEmitter = require('events').EventEmitter var http = require('http')