This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f5a90666e log workflow errors, include stack trace at debug level
6f5a90666e is described below

commit 6f5a90666e8a467f9620bbd85561a84836ff2a36
Author: Alex Heneveld <[email protected]>
AuthorDate: Wed Sep 13 14:25:02 2023 +0100

    log workflow errors, include stack trace at debug level
---
 .../org/apache/brooklyn/core/workflow/WorkflowExecutionContext.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/brooklyn/core/workflow/WorkflowExecutionContext.java
 
b/core/src/main/java/org/apache/brooklyn/core/workflow/WorkflowExecutionContext.java
index 750d835500..0abb57c806 100644
--- 
a/core/src/main/java/org/apache/brooklyn/core/workflow/WorkflowExecutionContext.java
+++ 
b/core/src/main/java/org/apache/brooklyn/core/workflow/WorkflowExecutionContext.java
@@ -1248,7 +1248,8 @@ public class WorkflowExecutionContext {
                 }
 
             } else {
-                log.debug("Error in workflow '" + getName() + "' around step " 
+ workflowStepReference(currentStepIndex) + ", no error handler so rethrowing: 
" + Exceptions.collapseText(e));
+                // provide the error in case useful; if too wasteful, attach 
an error handler to fail rethrow
+                log.debug("Error in workflow '" + getName() + "' around step " 
+ workflowStepReference(currentStepIndex) + ", no error handler so rethrowing: 
" + Exceptions.collapseText(e), e);
             }
 
             if (errorHandled) return null;

Reply via email to