Commit 7b9cd14 Aitor Magán García
committed
1 parent 533c86b commit 7b9cd14 Copy full SHA for 7b9cd14
File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ Monitor.prototype.start = function(){
74
74
75
75
self . monitor = setInterval ( function ( ) {
76
76
if ( ! self . database . connected ( ) ) {
77
- log . info ( { opType : 'MONITOR' , msg : 'disconnected' } ) ;
77
+ logger . info ( { opType : 'MONITOR' , msg : 'disconnected' } ) ;
78
78
self . emit ( 'disconnected' ) ;
79
79
} else {
80
- log . info ( { opType : 'MONITOR' , msg : 'connected' } ) ;
80
+ logger . info ( { opType : 'MONITOR' , msg : 'connected' } ) ;
81
81
self . emit ( 'connected' ) ;
82
82
}
83
83
} , 3000 ) ;
@@ -97,8 +97,6 @@ Monitor.prototype.restart = function(database){
97
97
this . start ( ) ;
98
98
} ;
99
99
100
- logger . prefix = path . basename ( module . filename , '.js' ) ;
101
-
102
100
var dbMaster ;
103
101
var blockingDb ;
104
102
var sentinels = [ ] ;
You can’t perform that action at this time.
0 commit comments