13
0
geforkt von Mirrors/Paper

Revert "Fixes exception log messages getting dropped during bootstrap (#10935)" (Closes #10945)

This reverts commit 05dd6c2bec.
Dieser Commit ist enthalten in:
Shane Freeder 2024-06-21 10:05:27 +01:00
Ursprung 71f3228b5c
Commit 28238907c1

Datei anzeigen

@ -94,21 +94,6 @@ 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