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 10:11:44 UTC
[jackrabbit-filevault] 01/01: JCRVLT-677 emit stack trace with every throwable
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch bugfix/improve-error-logging-in-cli
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
commit cef8a52069f246a3f1059fe41e2521bbf8064485
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sat Jan 14 11:11:36 2023 +0100
JCRVLT-677 emit stack trace with every throwable
---
.../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;
}
}