13
0
geforkt von Mirrors/Paper

Fixes exception log messages getting dropped during bootstrap (#10935)

Dieser Commit ist enthalten in:
Jake Potrebic 2024-06-20 11:26:07 -07:00
Ursprung 26fd1c1b56
Commit 05dd6c2bec

Datei anzeigen

@ -94,6 +94,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
// CraftBukkit start
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
@@ -0,0 +0,0 @@ public class Main {
net.minecraft.server.Main.main(options);
} catch (Throwable t) {
t.printStackTrace();
+ // Paper start - shutdown log manager to flush appenders
+ } finally {
+ org.apache.logging.log4j.LogManager.shutdown();
+ // Paper end
}
}
}
diff --git a/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java b/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java