Logger settings (suppressing pointless logs)

This commit is contained in:
William Blake Galbreath
2025-01-05 12:37:32 -08:00
committed by granny
parent 7d3e69b342
commit 187613f961
6 changed files with 51 additions and 74 deletions

View File

@@ -0,0 +1,10 @@
--- a/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java
+++ b/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java
@@ -265,6 +_,7 @@
}
static {
+ if (!org.purpurmc.purpur.PurpurConfig.loggerSuppressInitLegacyMaterialError) // Purpur - Logger settings (suppressing pointless logs)
LOGGER.warn("Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!"); // Paper - Improve logging and errors; doesn't need to be an error
if (MinecraftServer.getServer() != null && MinecraftServer.getServer().isDebugging()) {
new Exception().printStackTrace();