Skip to content

Commit e6e643a

Browse files
committed
commented out logging statements
1 parent f89e9c4 commit e6e643a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/index.js

+4-4
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)