lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1521741 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/logging/log4j/Log4jWatcher.java
Date Wed, 11 Sep 2013 06:06:49 GMT
Author: ryan
Date: Wed Sep 11 06:06:48 2013
New Revision: 1521741

URL: http://svn.apache.org/r1521741
Log:
SOLR-3706: getRenderedMessage() rather than + ""

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/logging/log4j/Log4jWatcher.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/logging/log4j/Log4jWatcher.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/logging/log4j/Log4jWatcher.java?rev=1521741&r1=1521740&r2=1521741&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/logging/log4j/Log4jWatcher.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/logging/log4j/Log4jWatcher.java Wed
Sep 11 06:06:48 2013
@@ -152,7 +152,7 @@ public class Log4jWatcher extends LogWat
     doc.setField("time", new Date(event.getTimeStamp()));
     doc.setField("level", event.getLevel().toString());
     doc.setField("logger", event.getLogger().getName());
-    doc.setField("message", event.getMessage() + ""); // avoid NPE when we have an event
with null message
+    doc.setField("message", event.getRenderedMessage());
     ThrowableInformation t = event.getThrowableInformation();
     if(t!=null) {
       doc.setField("trace", Throwables.getStackTraceAsString(t.getThrowable()));



Mime
View raw message