You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ca...@apache.org on 2010/11/13 03:59:05 UTC
svn commit: r1034632 - in /logging/log4j/trunk/src: changes/changes.xml
main/java/org/apache/log4j/spi/LoggingEvent.java
Author: carnold
Date: Sat Nov 13 02:59:05 2010
New Revision: 1034632
URL: http://svn.apache.org/viewvc?rev=1034632&view=rev
Log:
Bug 50238: wrong log levels logged with serialized LoggingEvent
Modified:
logging/log4j/trunk/src/changes/changes.xml
logging/log4j/trunk/src/main/java/org/apache/log4j/spi/LoggingEvent.java
Modified: logging/log4j/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4j/trunk/src/changes/changes.xml?rev=1034632&r1=1034631&r2=1034632&view=diff
==============================================================================
--- logging/log4j/trunk/src/changes/changes.xml (original)
+++ logging/log4j/trunk/src/changes/changes.xml Sat Nov 13 02:59:05 2010
@@ -25,6 +25,7 @@
<action issue="43282" action="fix">Eliminate duplicates in OSGi Import-Package directive.</action>
<action issue="48588" action="fix">DOMConfigurator does not close input stream when configured based on URL.</action>
<action issue="49078" action="fix">javadoc.jar was missing NOTICE and LICENSE and contained .svn entries.</action>
+ <action issue="50238" action="fix">Wrong log levels logged with serialized LoggingEvent.</action>
</release>
<release version="1.2.16" date="2010-04-06" description="Maintenance release">
Modified: logging/log4j/trunk/src/main/java/org/apache/log4j/spi/LoggingEvent.java
URL: http://svn.apache.org/viewvc/logging/log4j/trunk/src/main/java/org/apache/log4j/spi/LoggingEvent.java?rev=1034632&r1=1034631&r2=1034632&view=diff
==============================================================================
--- logging/log4j/trunk/src/main/java/org/apache/log4j/spi/LoggingEvent.java (original)
+++ logging/log4j/trunk/src/main/java/org/apache/log4j/spi/LoggingEvent.java Sat Nov 13 02:59:05 2010
@@ -436,8 +436,7 @@ public class LoggingEvent implements jav
m = clazz.getDeclaredMethod(TO_LEVEL, TO_LEVEL_PARAMS);
methodCache.put(className, m);
}
- PARAM_ARRAY[0] = new Integer(p);
- level = (Level) m.invoke(null, PARAM_ARRAY);
+ level = (Level) m.invoke(null, new Integer[] { new Integer(p) } );
}
} catch(InvocationTargetException e) {
if (e.getTargetException() instanceof InterruptedException
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org