logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1395954 - /logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java
Date Tue, 09 Oct 2012 10:49:13 GMT
Author: ggregory
Date: Tue Oct  9 10:49:13 2012
New Revision: 1395954

URL: http://svn.apache.org/viewvc?rev=1395954&view=rev
Log:
Fix type-cast to match instancof test.

Modified:
    logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java?rev=1395954&r1=1395953&r2=1395954&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java (original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java Tue
Oct  9 10:49:13 2012
@@ -250,7 +250,7 @@ public class Category {
 
     public void forcedLog(String fqcn, Priority level, Object message, Throwable t) {
         org.apache.logging.log4j.Level lvl = org.apache.logging.log4j.Level.toLevel(level.toString());
-        Message msg = message instanceof Message ? (ObjectMessage) message : new ObjectMessage(message);
+        Message msg = message instanceof Message ? (Message) message : new ObjectMessage(message);
         logger.log(null, fqcn, lvl, msg, t);
     }
 



Mime
View raw message