You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by iu...@apache.org on 2021/04/06 13:08:22 UTC
[brooklyn-server] 01/01: Replaced Exceptions.collapse with
Exceptions.collapseText to reduce stacktraces from console for HTTP not
found 404 errors and terminated VMs are queried
This is an automated email from the ASF dual-hosted git repository.
iuliana pushed a commit to branch improv/reduce-logs
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
commit cede518470f21bc5ddf2dfe958edbc35fe3a47f2
Author: iuliana <iu...@cloudsoft.io>
AuthorDate: Tue Apr 6 14:07:59 2021 +0100
Replaced Exceptions.collapse with Exceptions.collapseText to reduce stacktraces from console for HTTP not found 404 errors and terminated VMs are queried
---
.../java/org/apache/brooklyn/rest/util/DefaultExceptionMapper.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/util/DefaultExceptionMapper.java b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/util/DefaultExceptionMapper.java
index b2e640e..8988815 100644
--- a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/util/DefaultExceptionMapper.java
+++ b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/util/DefaultExceptionMapper.java
@@ -64,7 +64,7 @@ public class DefaultExceptionMapper implements ExceptionMapper<Throwable> {
if (throwable1.getClass().getName().equals("org.eclipse.jetty.io.EofException")) {
if (LOG.isTraceEnabled()) {
LOG.trace("REST request running as {} was disconnected, threw: {}", Entitlements.getEntitlementContext(),
- Exceptions.collapse(throwable1));
+ Exceptions.collapseText(throwable1));
}
return null;
}
@@ -72,10 +72,10 @@ public class DefaultExceptionMapper implements ExceptionMapper<Throwable> {
Throwable throwable2 = Exceptions.getFirstInteresting(throwable1);
if (isSevere(throwable2)) {
LOG.warn("REST request running as {} threw: {}", Entitlements.getEntitlementContext(),
- Exceptions.collapse(throwable1));
+ Exceptions.collapseText(throwable1));
} else {
LOG.debug("REST request running as {} threw: {}", Entitlements.getEntitlementContext(),
- Exceptions.collapse(throwable1));
+ Exceptions.collapseText(throwable1));
}
logExceptionDetailsForDebugging(throwable1);