File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 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) {
5858
5959 //create pool if doesn't exist
6060 if ( ! pool ) {
61- log ( "creating pool %s" , config )
61+ // log("creating pool %s", config)
6262 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)
6464 var client = new Client ( config ) ;
6565 client . connected = false ;
6666 return client ;
@@ -115,15 +115,15 @@ var end = function(name) {
115115 }
116116 }
117117 var pool = clientPools [ name ] ;
118- log ( "destroying pool %s" , name ) ;
118+ // log("destroying pool %s", name);
119119 pool . waits . forEach ( function ( wait ) {
120120 wait ( new Error ( "Client is being destroyed" ) )
121121 } )
122122 pool . waits = [ ] ;
123123 pool . items . forEach ( function ( item ) {
124124 var client = item . ref ;
125125 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");
127127 client . on ( 'drain' , client . end . bind ( client ) )
128128 } else {
129129 client . end ( ) ;
You can’t perform that action at this time.
0 commit comments