Add params for the exception message

Signed-off-by: cpw <[email protected]>

tweak logging

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-06-15 19:47:08 -04:00
1 parent e1cdb2e558
commit 37a896fe1b
2 files changed
+3 -1

No files matched your search

@@ -1001,6 +1001,7 @@ public class ForgeHooksClient
// This serves a workaround for no built-in method of triggering this type of refresh as brought up by LOG4J2-2178.
public static void invalidateLog4jThreadCache()
{
if (System.getProperty("java.version").compareTo("1.8.0_102") >= 0) return; // skip for later JDKs, because it's not CACHED see LOG4J2-2052
try
{
Field nameField = ThreadNameCachingStrategy.class.getDeclaredField("THREADLOCAL_NAME");