File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ var getPooledClient = function(config, callback) {
58
58
59
59
//create pool if doesn't exist
60
60
if ( ! pool ) {
61
- log ( "creating pool %s" , config )
61
+ // log("creating pool %s", config)
62
62
pool = clientPools [ config ] = new Pool ( defaults . poolSize , function ( ) {
63
- log ( "creating new client in pool %s" , config )
63
+ // log("creating new client in pool %s", config)
64
64
var client = new Client ( config ) ;
65
65
client . connected = false ;
66
66
return client ;
@@ -115,15 +115,15 @@ var end = function(name) {
115
115
}
116
116
}
117
117
var pool = clientPools [ name ] ;
118
- log ( "destroying pool %s" , name ) ;
118
+ // log("destroying pool %s", name);
119
119
pool . waits . forEach ( function ( wait ) {
120
120
wait ( new Error ( "Client is being destroyed" ) )
121
121
} )
122
122
pool . waits = [ ] ;
123
123
pool . items . forEach ( function ( item ) {
124
124
var client = item . ref ;
125
125
if ( client . activeQuery ) {
126
- log ( "client is still active, waiting for it to complete" ) ;
126
+ // log("client is still active, waiting for it to complete");
127
127
client . on ( 'drain' , client . end . bind ( client ) )
128
128
} else {
129
129
client . end ( ) ;
You can’t perform that action at this time.
0 commit comments