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);