Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Use debug module instead of ipfs-logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofmn committed Nov 30, 2016
1 parent 6cd880e commit 9187cfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"pre-commit": "^1.1.2"
},
"dependencies": {
"ipfs-logger": "^0.1.1",
"peer-info": "^0.8.0",
"debug": "^2.3.3",
"multiaddr": "^2.1.1",
"peer-id": "^0.8.0",
"multiaddr": "^2.1.1"
"peer-info": "^0.8.0"
},
"jsnext:main": "src/index.js",
"pre-commit": [
Expand Down
7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ var Peer = require('peer-info')
var multiaddr = require('multiaddr')
var EventEmitter = require('events').EventEmitter
var util = require('util')
var log = require('ipfs-logger').group('bootstrap ipfs-railing')
var debug = require('debug')

var log = debug('libp2p:railing')
log.error = debug('libp2p:railing:error')

exports = module.exports = Bootstrap
exports.default = require('./default.json')
Expand All @@ -26,7 +29,7 @@ function Bootstrap (peerList, options, swarm) {

Peer.create(peerId, function (err, peer) {
if (err) {
return log.warn('Error creating PeerInfo from bootstrap peer', err)
return log.error('Error creating PeerInfo from bootstrap peer', err)
}

peer.multiaddr.add(mh)
Expand Down

0 comments on commit 9187cfa

Please sign in to comment.