logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501482 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
Date Tue, 09 Jul 2013 19:29:51 GMT
Author: ggregory
Date: Tue Jul  9 19:29:51 2013
New Revision: 1501482

URL: http://svn.apache.org/r1501482
Log:
Use AbstractAppender.parseInt to log parsing exceptions to AbstractAppender's logger.

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java?rev=1501482&r1=1501481&r2=1501482&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
Tue Jul  9 19:29:51 2013
@@ -107,7 +107,7 @@ public class SocketAppender<T extends Se
         final boolean handleExceptions = Booleans.parseBoolean(suppress, true);
         final boolean fail = Booleans.parseBoolean(immediateFail, true);
         final int reconnectDelay = AbstractAppender.parseInt(delay, 0);
-        final int port = Integers.parseInt(portNum);
+        final int port = AbstractAppender.parseInt(portNum, 0);
         if (layout == null) {
             @SuppressWarnings({ "unchecked", "UnnecessaryLocalVariable" })
             final



Mime
View raw message