From 9e019f28e5f3d55f27212dc72d7017250ed82535 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Wed, 28 Feb 2018 15:14:19 -0600 Subject: [PATCH] Log all calls to Client.end() --- lib/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client.js b/lib/client.js index 3228571d5..d19c20bf6 100644 --- a/lib/client.js +++ b/lib/client.js @@ -395,6 +395,7 @@ Client.prototype.query = function (config, values, callback) { } Client.prototype.end = function (cb) { + console.log(`Client.end called! Stack:\n${new Error().stack}`); this._ending = true if (this.activeQuery) { // if we have an active query we need to force a disconnect