diff --git a/minecraft/libraries/log4j-patch/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java b/minecraft/libraries/log4j-patch/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java index 606cc7b6d..d17105a57 100644 --- a/minecraft/libraries/log4j-patch/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java +++ b/minecraft/libraries/log4j-patch/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java @@ -65,7 +65,7 @@ public class Interpolator implements StrLookup { lookups.put("sys", new SystemPropertiesLookup()); lookups.put("env", new EnvironmentLookup()); // lookups.put("jndi", new JndiLookup()); - LOGGER.warn("log4j-patch works, JNDI lookup is disabled"); + LOGGER.warn("Log4j patch works, JNDI lookup is disabled. This message is not a warning, it represents the successful elimination of some security risks. You should be able to play safely."); try { if (Class.forName("javax.servlet.ServletContext") != null) { diff --git a/minecraft/libraries/log4j-patch/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java b/minecraft/libraries/log4j-patch/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java index 1e87e75ed..d94466be1 100644 --- a/minecraft/libraries/log4j-patch/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java +++ b/minecraft/libraries/log4j-patch/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java @@ -8,6 +8,6 @@ package org.apache.logging.log4j.core.lookup; public class JndiLookup { public JndiLookup() { - throw new NoClassDefFoundError("JNDI lookup is disabled"); + throw new NoClassDefFoundError("JNDI lookup is disabled. This is not an error. We are blocking some vulnerabilities through it. You should be able to play safely."); } }