Skip to content

Commit 9e019f2

Browse files
committed
Log all calls to Client.end()
1 parent 94d38f9 commit 9e019f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ Client.prototype.query = function (config, values, callback) {
395395
}
396396

397397
Client.prototype.end = function (cb) {
398+
console.log(`Client.end called! Stack:\n${new Error().stack}`);
398399
this._ending = true
399400
if (this.activeQuery) {
400401
// if we have an active query we need to force a disconnect

0 commit comments

Comments
 (0)