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/01/07 13:13:34 UTC
svn commit: r896858 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java
Author: davsclaus
Date: Thu Jan 7 12:13:03 2010
New Revision: 896858
URL: http://svn.apache.org/viewvc?rev=896858&view=rev
Log:
CAMEL-2339: Scheduled consumer now log java.lang.Error at FATAL level before rethrowing
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java?rev=896858&r1=896857&r2=896858&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java Thu Jan 7 12:13:03 2010
@@ -119,6 +119,10 @@
} catch (Exception re) {
throw ObjectHelper.wrapRuntimeCamelException(re);
}
+ } catch (Error e) {
+ // log the fatal error as the JDK itself may not log it for us
+ log.fatal("Consumer " + this + " could not poll endpoint: " + getEndpoint().getEndpointUri() + " caused by: " + e.getMessage(), e);
+ throw e;
}
}
}