commented out logging statements
This commit is contained in:
parent
f89e9c4bb0
commit
e6e643ac6d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user