3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-24 23:30:26 +01:00

Disable Log4J's built-in shutdown hook, because it broke logging in the shutdown sequence when exiting by interrupting the process. This was caused by the Log4J's hook running before ours. (#637)

Dieser Commit ist enthalten in:
kyngs 2022-03-14 04:59:50 +01:00 committet von GitHub
Ursprung 94e8b0df43
Commit f0ea638fa1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -502,6 +502,9 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
} }
// Since we manually removed the shutdown hook, we need to handle the shutdown ourselves.
LogManager.shutdown();
shutdown = true; shutdown = true;
if (explicitExit) { if (explicitExit) {

Datei anzeigen

@ -16,7 +16,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<Configuration status="warn"> <!-- Disable shutdown hook, because we have our own -->
<Configuration status="warn" shutdownHook="disable">
<Appenders> <Appenders>
<TerminalConsole name="TerminalConsole"> <TerminalConsole name="TerminalConsole">
<PatternLayout> <PatternLayout>