Skip to content

Commit

Permalink
[WIP] Allow printing stacktrace when invocations finish with an error
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedSoliman committed Jan 11, 2024
1 parent 31e2c9e commit e52988f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/state_machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,10 @@ export class StateMachine<I, O> implements RestateStreamConsumer {
}

const error = ensureError(e);
rlog.debugInvokeMessage(
rlog.trace(
this.invocation.logPrefix,
"Function completed with an error: " + error.message
"Function completed with an error: " + error.message,
e
);

this.sendErrorAndFinish(error);
Expand Down

0 comments on commit e52988f

Please sign in to comment.