You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2023/01/14 19:15:35 UTC
[jackrabbit-filevault] branch master updated: JCRVLT-677 emit stack trace with every throwable (#266)
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
The following commit(s) were added to refs/heads/master by this push:
new da630ef7 JCRVLT-677 emit stack trace with every throwable (#266)
da630ef7 is described below
commit da630ef7e7d3c0343d5aa23e6d6ccc8c22903a28
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sat Jan 14 20:15:31 2023 +0100
JCRVLT-677 emit stack trace with every throwable (#266)
---
.../org/apache/jackrabbit/vault/util/console/ExecutionContext.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/ExecutionContext.java b/vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/ExecutionContext.java
index 5ab97aae..3e5e4b44 100644
--- a/vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/ExecutionContext.java
+++ b/vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/ExecutionContext.java
@@ -134,17 +134,17 @@ public class ExecutionContext {
}
} catch (ExecutionException e) {
if (e.getCause() == null || e.getCause() == e) {
- log.error("{}: {}", c.getName(), e.getMessage());
+ log.error("{}: {}", c.getName(), e.getMessage(), e);
} else {
StringBuffer buf = new StringBuffer();
addCause(buf, e.getCause(), null);
- log.error("{}: {}", c.getName(), buf.toString());
+ log.error("{}: {}", c.getName(), buf.toString(), e);
}
} catch (Throwable e) {
StringBuffer buf = new StringBuffer();
addCause(buf, e, null);
- log.error("{}: {}", c.getName(), buf.toString());
+ log.error("{}: {}", c.getName(), buf.toString(), e);
return true;
}
}