logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501416 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/FailoverAppender.java
Date Tue, 09 Jul 2013 18:13:25 GMT
Author: ggregory
Date: Tue Jul  9 18:13:25 2013
New Revision: 1501416

URL: http://svn.apache.org/r1501416
Log:
Better param name.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/FailoverAppender.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/FailoverAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/FailoverAppender.java?rev=1501416&r1=1501415&r2=1501416&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/FailoverAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/FailoverAppender.java
Tue Jul  9 18:13:25 2013
@@ -176,7 +176,7 @@ public final class FailoverAppender<T ex
      * @param name The name of the Appender (required).
      * @param primary The name of the primary Appender (required).
      * @param failovers The name of one or more Appenders to fail over to (at least one is
required).
-     * @param intervalSeconds The retry intervalMillis.
+     * @param retryIntervalString The retry intervalMillis.
      * @param config The current Configuration (passed by the Configuration when the appender
is created).
      * @param filter A Filter (optional).
      * @param suppress "true" if exceptions should be hidden from the application, "false"
otherwise.
@@ -188,7 +188,7 @@ public final class FailoverAppender<T ex
     public static <S extends Serializable> FailoverAppender<S> createAppender(@PluginAttr("name")
final String name,
                                                   @PluginAttr("primary") final String primary,
                                                   @PluginElement("failovers") final String[]
failovers,
-                                                  @PluginAttr("retryInterval") final String
intervalSeconds,
+                                                  @PluginAttr("retryInterval") final String
retryIntervalString,
                                                   @PluginConfiguration final Configuration
config,
                                                   @PluginElement("filters") final Filter
filter,
                                                   @PluginAttr("suppressExceptions") final
String suppress) {
@@ -205,12 +205,12 @@ public final class FailoverAppender<T ex
             return null;
         }
 
-        final int seconds = parseInt(intervalSeconds, DEFAULT_INTERVAL_SECONDS);
+        final int seconds = parseInt(retryIntervalString, DEFAULT_INTERVAL_SECONDS);
         int retryIntervalMillis;
         if (seconds >= 0) {
             retryIntervalMillis = seconds * Constants.MILLIS_IN_SECONDS;
         } else {
-            LOGGER.warn("Interval " + intervalSeconds + " is less than zero. Using default");
+            LOGGER.warn("Interval " + retryIntervalString + " is less than zero. Using default");
             retryIntervalMillis = DEFAULT_INTERVAL_SECONDS * Constants.MILLIS_IN_SECONDS;
         }
 



Mime
View raw message