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:
Ursprung
94e8b0df43
Commit
f0ea638fa1
@ -502,6 +502,9 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
||||
// Since we manually removed the shutdown hook, we need to handle the shutdown ourselves.
|
||||
LogManager.shutdown();
|
||||
|
||||
shutdown = true;
|
||||
|
||||
if (explicitExit) {
|
||||
|
@ -16,7 +16,8 @@
|
||||
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>
|
||||
<TerminalConsole name="TerminalConsole">
|
||||
<PatternLayout>
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren