Make ClassLoaderPriorityUtil print warnings

Makes it more obvious that jars are overridden because people tend to forget about it leading to random issues later
This commit is contained in:
FlorianMichael 2024-05-26 16:21:58 +02:00
parent 07f25f8e26
commit c1a34f3d7f
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -52,7 +52,7 @@ public class ClassLoaderPriorityUtil {
for (File file : files) {
if (file.getName().endsWith(".jar")) {
ClassLoaders.loadToFront(file.toURI().toURL());
ViaFabricPlus.global().getLogger().info("Loaded overriding jar " + file.getName());
ViaFabricPlus.global().getLogger().warn("Loaded overriding jar {}", file.getName());
}
}
} finally {