Skip to content

Commit d433ae1

Browse files
committed
fix: add debug again
1 parent 4eeb9bc commit d433ae1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/src/main/java/com/amazonaws/lambda/durable/DurableExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ public static <I, O> DurableExecutionOutput execute(
122122
return DurableExecutionOutput.success(outputPayload);
123123
} catch (Exception e) {
124124
Throwable cause = e.getCause() != null ? e.getCause() : e;
125-
// We must catch here in case exception is propagated before suspendFuture resolved
126125
if (cause instanceof SuspendExecutionException) {
127126
logger.debug("Execution suspended");
128127
return DurableExecutionOutput.pending();
129128
}
129+
logger.debug("Execution failed: {}", cause.getMessage());
130130
return DurableExecutionOutput.failure(cause, serDes);
131131
} finally {
132132
// We shutdown the execution to make sure remaining checkpoint calls in the queue are drained

0 commit comments

Comments
 (0)