mirror of https://github.com/apache/lucene.git
SOLR-5479: Deal with null message in SolrLogLayout
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1543966 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f1ed4ee86
commit
51a45c9f4d
|
@ -112,7 +112,9 @@ public class SolrLogLayout extends Layout {
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue