You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by ma...@apache.org on 2010/10/09 14:29:33 UTC
svn commit: r1006144 -
/incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/proxy/Collaborator.java
Author: mahrwald
Date: Sat Oct 9 12:29:32 2010
New Revision: 1006144
URL: http://svn.apache.org/viewvc?rev=1006144&view=rev
Log:
ARIES-443: Log exception that are discarded at warning level
Modified:
incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/proxy/Collaborator.java
Modified: incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/proxy/Collaborator.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/proxy/Collaborator.java?rev=1006144&r1=1006143&r2=1006144&view=diff
==============================================================================
--- incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/proxy/Collaborator.java (original)
+++ incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/proxy/Collaborator.java Sat Oct 9 12:29:32 2010
@@ -179,12 +179,16 @@ class Collaborator implements Invocation
// we will throw this exception
if (exceptionToRethrow == null) {
exceptionToRethrow = f;
+ } else {
+ LOGGER.warn("Discarding post-call with interceptor exception", f);
}
}
// if we made it this far without choosing an exception we
// should throw e
if (exceptionToRethrow == null) {
exceptionToRethrow = e;
+ } else {
+ LOGGER.warn("Discarding initial exception", e);
}
throw exceptionToRethrow;
}
@@ -245,9 +249,12 @@ class Collaborator implements Invocation
.getPreCallToken());
} catch (Throwable t) {
// log the exception
- LOGGER.error("postCallInterceptorWithException", t);
- if (tobeRethrown == null)
+ LOGGER.debug("postCallInterceptorWithException", t);
+ if (tobeRethrown == null) {
tobeRethrown = t;
+ } else {
+ LOGGER.warn("Discarding post-call with interceptor exception", t);
+ }
}
} // end while