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 2009/11/18 13:56:02 UTC

svn commit: r881754 - /camel/trunk/camel-core/src/main/java/org/apache/camel/processor/RedeliveryPolicy.java

Author: davsclaus
Date: Wed Nov 18 12:56:02 2009
New Revision: 881754

URL: http://svn.apache.org/viewvc?rev=881754&view=rev
Log:
CAMEL-2198: By default exhausted exceptions is logged at ERROR level to aid end users find errors when f.e. clients fail to report them

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/RedeliveryPolicy.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/RedeliveryPolicy.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/RedeliveryPolicy.java?rev=881754&r1=881753&r2=881754&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/RedeliveryPolicy.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/RedeliveryPolicy.java Wed Nov 18 12:56:02 2009
@@ -43,7 +43,7 @@
  *   <li>useExponentialBackOff = false</li>
  *   <li>collisionAvoidanceFactor = 0.15d</li>
  *   <li>useCollisionAvoidance = false</li>
- *   <li>retriesExhaustedLogLevel = LoggingLevel.DEBUG</li>
+ *   <li>retriesExhaustedLogLevel = LoggingLevel.ERROR</li>
  *   <li>retryAttemptedLogLevel = LoggingLevel.DEBUG</li>
  *   <li>logStrackTrace = false</li>
  * </ul>
@@ -53,7 +53,7 @@
  * <p/>
  * This policy can be configured either by one of the following two settings:
  * <ul>
- *   <li>using convnetional options, using all the options defined above</li>
+ *   <li>using conventional options, using all the options defined above</li>
  *   <li>using delay pattern to declare intervals for delays</li>
  * </ul>
  * <p/>
@@ -83,7 +83,7 @@
     // +/-15% for a 30% spread -cgs
     protected double collisionAvoidanceFactor = 0.15d;
     protected boolean useCollisionAvoidance;
-    protected LoggingLevel retriesExhaustedLogLevel = LoggingLevel.DEBUG;
+    protected LoggingLevel retriesExhaustedLogLevel = LoggingLevel.ERROR;
     protected LoggingLevel retryAttemptedLogLevel = LoggingLevel.DEBUG;
     protected boolean logStackTrace;
     protected String delayPattern;
@@ -198,7 +198,7 @@
      */
     protected static long calculateRedeliverDelayUsingPattern(String delayPattern, int redeliveryCounter) {
         String[] groups = delayPattern.split(";");
-        // find the group where ther redelivery counter matches
+        // find the group where the redelivery counter matches
         long answer = 0;
         for (String group : groups) {
             long delay = Long.valueOf(ObjectHelper.after(group, ":"));
@@ -451,7 +451,7 @@
     }
 
     /**
-     * Sets an optional delay pattern to use insted of fixed delay.
+     * Sets an optional delay pattern to use instead of fixed delay.
      */
     public void setDelayPattern(String delayPattern) {
         this.delayPattern = delayPattern;
@@ -462,7 +462,7 @@
     }
 
     /**
-     * Sets wheter stack traces should be logged or not
+     * Sets whether stack traces should be logged or not
      */
     public void setLogStackTrace(boolean logStackTrace) {
         this.logStackTrace = logStackTrace;