Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-25 15:50:19 +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:
Ursprung
94e8b0df43
Commit
f0ea638fa1
@ -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) {
|
||||||
|
@ -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>
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren