Skip to content

Commit 7b9cd14

Browse files
author
Aitor Magán García
committed
Bugfix: replace log by logger
1 parent 533c86b commit 7b9cd14

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/dbCluster.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ Monitor.prototype.start = function(){
7474

7575
self.monitor = setInterval(function(){
7676
if(!self.database.connected()){
77-
log.info({ opType: 'MONITOR', msg: 'disconnected' });
77+
logger.info({ opType: 'MONITOR', msg: 'disconnected' });
7878
self.emit('disconnected');
7979
} else {
80-
log.info({ opType: 'MONITOR', msg: 'connected' });
80+
logger.info({ opType: 'MONITOR', msg: 'connected' });
8181
self.emit('connected');
8282
}
8383
}, 3000);
@@ -97,8 +97,6 @@ Monitor.prototype.restart = function(database){
9797
this.start();
9898
};
9999

100-
logger.prefix = path.basename(module.filename, '.js');
101-
102100
var dbMaster;
103101
var blockingDb;
104102
var sentinels = [];

0 commit comments

Comments
 (0)