console/patches/slonik@30.1.2.patch

31 lines
1.4 KiB
Diff
Raw Normal View History

diff --git a/dist/src/routines/executeQuery.js b/dist/src/routines/executeQuery.js
2022-08-11 08:58:36 +00:00
index 007d169..61441f8 100644
--- a/dist/src/routines/executeQuery.js
+++ b/dist/src/routines/executeQuery.js
2022-08-11 08:58:36 +00:00
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
2022-05-18 07:26:57 +00:00
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.executeQuery = void 0;
-const get_stack_trace_1 = require("get-stack-trace");
2022-08-11 08:58:36 +00:00
const p_defer_1 = __importDefault(require("p-defer"));
2022-05-18 07:26:57 +00:00
const serialize_error_1 = require("serialize-error");
2022-08-11 08:58:36 +00:00
const constants_1 = require("../constants");
@@ -80,17 +79,6 @@ const executeQuery = async (connectionLogger, connection, clientConfiguration, s
2022-05-18 07:26:57 +00:00
}
const queryInputTime = process.hrtime.bigint();
let stackTrace = null;
- if (clientConfiguration.captureStackTrace) {
2022-08-11 08:58:36 +00:00
- const callSites = await (0, get_stack_trace_1.getStackTrace)();
2022-05-18 07:26:57 +00:00
- stackTrace = callSites.map((callSite) => {
- return {
- columnNumber: callSite.columnNumber,
- fileName: callSite.fileName,
2022-08-11 08:58:36 +00:00
- functionName: callSite.functionName,
2022-05-18 07:26:57 +00:00
- lineNumber: callSite.lineNumber,
- };
- });
- }
2022-08-11 08:58:36 +00:00
const queryId = inheritedQueryId !== null && inheritedQueryId !== void 0 ? inheritedQueryId : (0, utilities_1.createQueryId)();
2022-05-18 07:26:57 +00:00
const log = connectionLogger.child({
queryId,