Ensure that Log4J is shutdown when stopping the server (Fixes #7932)

This commit is contained in:
Shane Freeder 2022-06-12 01:59:24 +01:00
parent 945316dc5d
commit 1ef1281f21

View file

@ -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