Skip to content

Commit 0d4d58a

Browse files
authored
[WIP] Allow printing stacktrace when invocations finish with an error (#226)
1 parent 31e2c9e commit 0d4d58a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/state_machine.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,10 @@ export class StateMachine<I, O> implements RestateStreamConsumer {
303303
}
304304

305305
const error = ensureError(e);
306-
rlog.debugInvokeMessage(
306+
rlog.trace(
307307
this.invocation.logPrefix,
308-
"Function completed with an error: " + error.message
308+
"Function completed with an error: " + error.message,
309+
e
309310
);
310311

311312
this.sendErrorAndFinish(error);

0 commit comments

Comments
 (0)