mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 05:26:50 +01:00
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.
This commit is contained in:
parent
efd6cb0812
commit
12698ea5ad
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ public class ForwardLogHandler extends ConsoleHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void publish(LogRecord record) {
|
public void publish(LogRecord record) {
|
||||||
Logger logger = getLogger(record.getLoggerName());
|
Logger logger = getLogger(String.valueOf(record.getLoggerName())); // See SPIGOT-1230
|
||||||
Throwable exception = record.getThrown();
|
Throwable exception = record.getThrown();
|
||||||
Level level = record.getLevel();
|
Level level = record.getLevel();
|
||||||
String message = getFormatter().formatMessage(record);
|
String message = getFormatter().formatMessage(record);
|
||||||
|
|
Loading…
Reference in a new issue