logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1400243 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/MapRewritePolicy.java
Date Fri, 19 Oct 2012 19:31:42 GMT
Author: rgoers
Date: Fri Oct 19 19:31:42 2012
New Revision: 1400243

URL: http://svn.apache.org/viewvc?rev=1400243&view=rev
Log:
LOG4J2-99 - MapRewritePolicy had an extra call to putAll that caused updates to behave like
adds.

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/MapRewritePolicy.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/MapRewritePolicy.java?rev=1400243&r1=1400242&r2=1400243&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/MapRewritePolicy.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/MapRewritePolicy.java
Fri Oct 19 19:31:42 2012
@@ -76,7 +76,6 @@ public final class MapRewritePolicy impl
                 }
             }
         }
-        newMap.putAll(map);
         MapMessage message = ((MapMessage) msg).newInstance(newMap);
         return new Log4jLogEvent(source.getLoggerName(), source.getMarker(), source.getFQCN(),
source.getLevel(),
             message, source.getThrown(), source.getContextMap(), source.getContextStack(),
source.getThreadName(),



Mime
View raw message