Make chunk system loggers calm down a bit

This commit is contained in:
Nassim Jahnke 2024-06-17 13:43:21 +02:00
parent 08a87667f7
commit 27a9efdca5

View file

@ -8661,6 +8661,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+import ca.spottedleaf.moonrise.patches.chunk_system.util.ChunkSystemSortedArraySet; +import ca.spottedleaf.moonrise.patches.chunk_system.util.ChunkSystemSortedArraySet;
+import com.google.gson.JsonArray; +import com.google.gson.JsonArray;
+import com.google.gson.JsonObject; +import com.google.gson.JsonObject;
+import com.mojang.logging.LogUtils;
+import it.unimi.dsi.fastutil.longs.Long2ByteLinkedOpenHashMap; +import it.unimi.dsi.fastutil.longs.Long2ByteLinkedOpenHashMap;
+import it.unimi.dsi.fastutil.longs.Long2ByteMap; +import it.unimi.dsi.fastutil.longs.Long2ByteMap;
+import it.unimi.dsi.fastutil.longs.Long2IntMap; +import it.unimi.dsi.fastutil.longs.Long2IntMap;
@ -8681,7 +8682,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+import net.minecraft.util.Unit; +import net.minecraft.util.Unit;
+import net.minecraft.world.level.ChunkPos; +import net.minecraft.world.level.ChunkPos;
+import org.slf4j.Logger; +import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import java.io.IOException; +import java.io.IOException;
+import java.text.DecimalFormat; +import java.text.DecimalFormat;
+import java.util.ArrayDeque; +import java.util.ArrayDeque;
@ -8699,7 +8699,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
+public final class ChunkHolderManager { +public final class ChunkHolderManager {
+ +
+ private static final Logger LOGGER = LoggerFactory.getLogger(ChunkHolderManager.class); + private static final Logger LOGGER = LogUtils.getClassLogger();
+ +
+ public static final int FULL_LOADED_TICKET_LEVEL = ChunkLevel.FULL_CHUNK_LEVEL; + public static final int FULL_LOADED_TICKET_LEVEL = ChunkLevel.FULL_CHUNK_LEVEL;
+ public static final int BLOCK_TICKING_TICKET_LEVEL = ChunkLevel.BLOCK_TICKING_LEVEL; + public static final int BLOCK_TICKING_TICKET_LEVEL = ChunkLevel.BLOCK_TICKING_LEVEL;
@ -10098,6 +10098,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+import ca.spottedleaf.moonrise.patches.chunk_system.server.ChunkSystemMinecraftServer; +import ca.spottedleaf.moonrise.patches.chunk_system.server.ChunkSystemMinecraftServer;
+import ca.spottedleaf.moonrise.patches.chunk_system.status.ChunkSystemChunkStep; +import ca.spottedleaf.moonrise.patches.chunk_system.status.ChunkSystemChunkStep;
+import ca.spottedleaf.moonrise.patches.chunk_system.util.ParallelSearchRadiusIteration; +import ca.spottedleaf.moonrise.patches.chunk_system.util.ParallelSearchRadiusIteration;
+import com.mojang.logging.LogUtils;
+import net.minecraft.CrashReport; +import net.minecraft.CrashReport;
+import net.minecraft.CrashReportCategory; +import net.minecraft.CrashReportCategory;
+import net.minecraft.ReportedException; +import net.minecraft.ReportedException;
@ -10115,7 +10116,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+import net.minecraft.world.level.chunk.status.ChunkStatus; +import net.minecraft.world.level.chunk.status.ChunkStatus;
+import net.minecraft.world.level.chunk.status.ChunkStep; +import net.minecraft.world.level.chunk.status.ChunkStep;
+import org.slf4j.Logger; +import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import java.util.ArrayDeque; +import java.util.ArrayDeque;
+import java.util.ArrayList; +import java.util.ArrayList;
+import java.util.Arrays; +import java.util.Arrays;
@ -10128,7 +10128,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
+public final class ChunkTaskScheduler { +public final class ChunkTaskScheduler {
+ +
+ private static final Logger LOGGER = LoggerFactory.getLogger(ChunkTaskScheduler.class); + private static final Logger LOGGER = LogUtils.getClassLogger();
+ +
+ static int newChunkSystemIOThreads; + static int newChunkSystemIOThreads;
+ static int newChunkSystemGenParallelism; + static int newChunkSystemGenParallelism;