Skip to content

Commit

Permalink
Bugfix: replace log by logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitor Magán García committed Jul 19, 2013
1 parent 533c86b commit 7b9cd14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/dbCluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ Monitor.prototype.start = function(){

self.monitor = setInterval(function(){
if(!self.database.connected()){
log.info({ opType: 'MONITOR', msg: 'disconnected' });
logger.info({ opType: 'MONITOR', msg: 'disconnected' });
self.emit('disconnected');
} else {
log.info({ opType: 'MONITOR', msg: 'connected' });
logger.info({ opType: 'MONITOR', msg: 'connected' });
self.emit('connected');
}
}, 3000);
Expand All @@ -97,8 +97,6 @@ Monitor.prototype.restart = function(database){
this.start();
};

logger.prefix = path.basename(module.filename, '.js');

var dbMaster;
var blockingDb;
var sentinels = [];
Expand Down

0 comments on commit 7b9cd14

Please sign in to comment.