diff --git a/Spigot-Server-Patches/0212-Use-TerminalConsoleAppender-for-console-improvements.patch b/Spigot-Server-Patches/0212-Use-TerminalConsoleAppender-for-console-improvements.patch index 5b28c2211..a77f46bd8 100644 --- a/Spigot-Server-Patches/0212-Use-TerminalConsoleAppender-for-console-improvements.patch +++ b/Spigot-Server-Patches/0212-Use-TerminalConsoleAppender-for-console-improvements.patch @@ -1,4 +1,4 @@ -From 3d69c48006f75e45b053b2d626a1829f71d1a7d6 Mon Sep 17 00:00:00 2001 +From 54a6c5e33ce7d79a8bf8110a35cf9b9ec1b26e60 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Fri, 9 Jun 2017 19:03:43 +0200 Subject: [PATCH] Use TerminalConsoleAppender for console improvements @@ -173,7 +173,7 @@ index 00000000..dcd31fbc + +} diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java -index 2feeb855..db9ace0c 100644 +index 2feeb855..3266df1f 100644 --- a/src/main/java/net/minecraft/server/DedicatedServer.java +++ b/src/main/java/net/minecraft/server/DedicatedServer.java @@ -73,7 +73,10 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer @@ -206,15 +206,25 @@ index 2feeb855..db9ace0c 100644 if (s != null && s.trim().length() > 0) { // Trim to filter lines which are just spaces issueCommand(s, DedicatedServer.this); } -@@ -113,8 +122,6 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer - } +@@ -106,6 +115,9 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer + } + global.addHandler(new org.bukkit.craftbukkit.util.ForwardLogHandler()); + ++ // Paper start - Not needed with TerminalConsoleAppender ++ final org.apache.logging.log4j.Logger logger = LogManager.getRootLogger(); ++ /* + final org.apache.logging.log4j.core.Logger logger = ((org.apache.logging.log4j.core.Logger) LogManager.getRootLogger()); + for (org.apache.logging.log4j.core.Appender appender : logger.getAppenders().values()) { + if (appender instanceof org.apache.logging.log4j.core.appender.ConsoleAppender) { +@@ -114,6 +126,8 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer } -- new Thread(new org.bukkit.craftbukkit.util.TerminalConsoleWriterThread(System.out, this.reader)).start(); -- + new Thread(new org.bukkit.craftbukkit.util.TerminalConsoleWriterThread(System.out, this.reader)).start(); ++ */ ++ // Paper end + System.setOut(new PrintStream(new LoggerOutputStream(logger, Level.INFO), true)); System.setErr(new PrintStream(new LoggerOutputStream(logger, Level.WARN), true)); - // CraftBukkit end diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index d84f59da..8ca8fdce 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java @@ -315,7 +325,7 @@ index 463f5890..df6a75b0 100644 @Override public PluginCommand getPluginCommand(String name) { diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java -index 1cbcc3df..c3b2413a 100644 +index 66e72006..84872520 100644 --- a/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/src/main/java/org/bukkit/craftbukkit/Main.java @@ -14,7 +14,7 @@ import java.util.logging.Logger; @@ -588,15 +598,15 @@ index b6409711..00000000 - } -} diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml -index 5cee8f00..f248d05f 100644 +index 5cee8f00..08b6bb7f 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml -@@ -1,12 +1,12 @@ +@@ -1,12 +1,11 @@ - + - +- - - - @@ -609,6 +619,14 @@ index 5cee8f00..f248d05f 100644 +@@ -19,7 +18,6 @@ + + + +- + + + -- 2.13.1