lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1543966 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java
Date Wed, 20 Nov 2013 21:59:56 GMT
Author: markrmiller
Date: Wed Nov 20 21:59:56 2013
New Revision: 1543966

URL: http://svn.apache.org/r1543966
Log:
SOLR-5479: Deal with null message in SolrLogLayout

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java?rev=1543966&r1=1543965&r2=1543966&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java Wed Nov 20
21:59:56 2013
@@ -112,7 +112,9 @@ public class SolrLogLayout extends Layou
   
   public String _format(LoggingEvent event) {
     String message = (String) event.getMessage();
-    
+    if (message == null) {
+      message = "";
+    }
     StringBuilder sb = new StringBuilder(message.length() + 80);
     
     long now = event.timeStamp;



Mime
View raw message