diff --git a/lib/index.js b/lib/index.js index 4c317d9..4fe24fe 100644 --- a/lib/index.js +++ b/lib/index.js @@ -58,9 +58,9 @@ var getPooledClient = function(config, callback) { //create pool if doesn't exist if(!pool) { - log("creating pool %s", config) + //log("creating pool %s", config) pool = clientPools[config] = new Pool(defaults.poolSize, function() { - log("creating new client in pool %s", config) + //log("creating new client in pool %s", config) var client = new Client(config); client.connected = false; return client; @@ -115,7 +115,7 @@ var end = function(name) { } } var pool = clientPools[name]; - log("destroying pool %s", name); + //log("destroying pool %s", name); pool.waits.forEach(function(wait) { wait(new Error("Client is being destroyed")) }) @@ -123,7 +123,7 @@ var end = function(name) { pool.items.forEach(function(item) { var client = item.ref; if(client.activeQuery) { - log("client is still active, waiting for it to complete"); + //log("client is still active, waiting for it to complete"); client.on('drain', client.end.bind(client)) } else { client.end();