SPIGOT-1230: Normalize null log names in ForwardLogHandler.

Not technically 100% correct since null != "null", but without sacrficing performance this is the best way to fix the issue in the current implementation.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2015-10-10 22:08:44 +11:00
parent 4432f095f7
commit 5f68a2157e

View file

@ -24,7 +24,7 @@ public class ForwardLogHandler extends ConsoleHandler {
@Override
public void publish(LogRecord record) {
Logger logger = getLogger(record.getLoggerName());
Logger logger = getLogger(String.valueOf(record.getLoggerName())); // See SPIGOT-1230
Throwable exception = record.getThrown();
Level level = record.getLevel();
String message = getFormatter().formatMessage(record);