diff --git a/packages/core/workflows-sdk/src/helper/workflow-export.ts b/packages/core/workflows-sdk/src/helper/workflow-export.ts index cac64fec83eb0..14a9f62b509da 100644 --- a/packages/core/workflows-sdk/src/helper/workflow-export.ts +++ b/packages/core/workflows-sdk/src/helper/workflow-export.ts @@ -519,21 +519,14 @@ function attachOnFinishReleaseEvents( ) || console if (logOnError) { - const TERMINAL_SIZE = process.stdout?.columns ?? 60 - const separator = new Array(TERMINAL_SIZE).join("-") - const workflowName = transaction.getFlow().modelId - const allWorkflowErrors = transaction + transaction .getErrors() - .map( - (err) => + .forEach((err) => + logger.error( `${workflowName}:${err?.action}:${err?.handlerType} - ${err?.error?.message}${EOL}${err?.error?.stack}` + ) ) - .join(EOL + separator + EOL) - - if (allWorkflowErrors) { - logger.error(allWorkflowErrors) - } } await onFinish?.(args)