From 0d4d58a2893e6493be540e74945999c6bd96b722 Mon Sep 17 00:00:00 2001 From: Ahmed Farghal Date: Thu, 11 Jan 2024 16:12:07 +0000 Subject: [PATCH] [WIP] Allow printing stacktrace when invocations finish with an error (#226) --- src/state_machine.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/state_machine.ts b/src/state_machine.ts index 6ffd7de7..5b227743 100644 --- a/src/state_machine.ts +++ b/src/state_machine.ts @@ -303,9 +303,10 @@ export class StateMachine 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);