Skip to content

Commit

Permalink
fix for issue #563
Browse files Browse the repository at this point in the history
  • Loading branch information
bimalkjha committed Aug 16, 2019
1 parent 84704d6 commit 526c88b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/odbc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1882,10 +1882,10 @@ Pool.prototype.open = function (connStr, callback)
cb && cb(null);

if(db.conn && self.options.autoCleanIdle) self.cleanUp(connStr);
if(exports.debug) {
process.stdout.write(getElapsedTime());
console.log(util.inspect(self, {depth: null}));
}
//if(exports.debug) {
//process.stdout.write(getElapsedTime());
//console.log(util.inspect(self, {depth: null}));
//}
return self.queue.next();
}; // db.close function

Expand Down Expand Up @@ -1981,7 +1981,7 @@ Pool.prototype.init = function(count, connStr)
}
self.usedPool[connStr] = self.usedPool[connStr] || [];
exports.debug && console.log(getElapsedTime(), "Max pool size = " + self.maxPoolSize);
exports.debug && console.log(getElapsedTime(), "Pool = ", self);
//exports.debug && console.log(getElapsedTime(), "Pool = ", self);
return ret;
}
};// Pool.init()
Expand Down Expand Up @@ -2080,8 +2080,8 @@ Pool.prototype.close = function (callback)
required += connections.length;

if(exports.debug) {
console.log("%s odbc.js : pool[%s] : pool.close() - processing pools %s - connections: %s",
getElapsedTime(), self.index, key, connections.length);
console.log("%s odbc.js : pool[%s] : pool.close() - processing pools - connections: %s",
getElapsedTime(), self.index, connections.length);
}

for (x = 0 ; x < connections.length; x ++)
Expand Down

0 comments on commit 526c88b

Please sign in to comment.