Skip to content

Commit f897155

Browse files
W-A-Jamesnbbeeken
authored andcommitted
Remove Error.captureStackTrace calls
1 parent a432320 commit f897155

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/cmap/command_monitoring_events.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export class CommandSucceededEvent {
110110
started: number,
111111
serverConnectionId: bigint | null
112112
) {
113-
Error.captureStackTrace(this);
114113
const cmd = extractCommand(command);
115114
const commandName = extractCommandName(cmd);
116115
const { address, connectionId, serviceId } = extractConnectionDetails(connection);
@@ -131,8 +130,6 @@ export class CommandSucceededEvent {
131130
}
132131
}
133132

134-
Error.stackTraceLimit = 1000;
135-
136133
/**
137134
* An event indicating the failure of a given command
138135
* @public
@@ -171,7 +168,6 @@ export class CommandFailedEvent {
171168
started: number,
172169
serverConnectionId: bigint | null
173170
) {
174-
Error.captureStackTrace(this);
175171
const cmd = extractCommand(command);
176172
const commandName = extractCommandName(cmd);
177173
const { address, connectionId, serviceId } = extractConnectionDetails(connection);

0 commit comments

Comments
 (0)