From 1ef1281f21e86cb723251d537aa32b97c0dda413 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Sun, 12 Jun 2022 01:59:24 +0100 Subject: [PATCH] Ensure that Log4J is shutdown when stopping the server (Fixes #7932) --- patches/server/Improved-Watchdog-Support.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/server/Improved-Watchdog-Support.patch b/patches/server/Improved-Watchdog-Support.patch index 53c628ebbb..77475b577f 100644 --- a/patches/server/Improved-Watchdog-Support.patch +++ b/patches/server/Improved-Watchdog-Support.patch @@ -477,6 +477,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + e.printStackTrace(); + // Paper end } finally { ++ org.apache.logging.log4j.LogManager.shutdown(); // Paper try { - net.minecrell.terminalconsole.TerminalConsoleAppender.close(); // Paper - Use TerminalConsoleAppender + //net.minecrell.terminalconsole.TerminalConsoleAppender.close(); // Paper - Move into stop