You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/02/04 07:12:13 UTC
svn commit: r906375 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java
Author: davsclaus
Date: Thu Feb 4 06:12:12 2010
New Revision: 906375
URL: http://svn.apache.org/viewvc?rev=906375&view=rev
Log:
CAMEL-2444: Added missing showAll for caught exception
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java?rev=906375&r1=906374&r2=906375&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java Thu Feb 4 06:12:12 2010
@@ -85,7 +85,7 @@
// try exception on exchange first
Exception exception = exchange.getException();
boolean caught = false;
- if (showCaughtException && exception == null) {
+ if ((showAll || showCaughtException) && exception == null) {
// fallback to caught exception
exception = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, Exception.class);
caught = true;