debug: better debug names

This commit is contained in:
Feross Aboukhadijeh 2017-01-20 18:34:33 -08:00
parent c3bf7f87f6
commit 9cf2dffa67
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
module.exports = Client module.exports = Client
var Buffer = require('safe-buffer').Buffer 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 EventEmitter = require('events').EventEmitter
var extend = require('xtend') var extend = require('xtend')
var inherits = require('inherits') var inherits = require('inherits')

View File

@ -1,6 +1,6 @@
module.exports = Swarm module.exports = Swarm
var debug = require('debug')('bittorrent-tracker') var debug = require('debug')('bittorrent-tracker:swarm')
var LRU = require('lru') var LRU = require('lru')
var randomIterate = require('random-iterate') var randomIterate = require('random-iterate')

View File

@ -2,7 +2,7 @@ module.exports = Server
var Buffer = require('safe-buffer').Buffer var Buffer = require('safe-buffer').Buffer
var bencode = require('bencode') var bencode = require('bencode')
var debug = require('debug')('bittorrent-tracker') var debug = require('debug')('bittorrent-tracker:server')
var dgram = require('dgram') var dgram = require('dgram')
var EventEmitter = require('events').EventEmitter var EventEmitter = require('events').EventEmitter
var http = require('http') var http = require('http')