Skip to content

Commit

Permalink
fix(job): stack trace limit (#2487)
Browse files Browse the repository at this point in the history
  • Loading branch information
nocodehummel authored and manast committed Mar 26, 2024
1 parent 6bf668e commit cce3bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ export class Job<
if (err?.stack) {
this.stacktrace.push(err.stack);
if (this.opts.stackTraceLimit) {
this.stacktrace = this.stacktrace.slice(0, this.opts.stackTraceLimit);
this.stacktrace = this.stacktrace.slice(-this.opts.stackTraceLimit);
}
}

Expand Down

0 comments on commit cce3bc3

Please sign in to comment.