From b1fdd8fcff7f4fd7b4242f9c6167d9db2e9e3b8f Mon Sep 17 00:00:00 2001 From: David Rogers Date: Sat, 3 Feb 2024 09:30:19 -0600 Subject: [PATCH] don't log missing class info for expr eval requests --- .../main/java/luceedebug/coreinject/LuceeVm.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/luceedebug/src/main/java/luceedebug/coreinject/LuceeVm.java b/luceedebug/src/main/java/luceedebug/coreinject/LuceeVm.java index 6c9d887..644c6a4 100644 --- a/luceedebug/src/main/java/luceedebug/coreinject/LuceeVm.java +++ b/luceedebug/src/main/java/luceedebug/coreinject/LuceeVm.java @@ -530,7 +530,18 @@ private void trackClassRef(ReferenceType refType) { catch (Throwable e) { // discard } - System.out.println("[luceedebug] class information for reftype " + name + " could not be retrieved."); + + if (name.contains("lucee.commons.lang.MemoryClassLoader")) { + // + // Suppress logging for names like "class 1cs8o747dipwu (loaded by instance of lucee.commons.lang.MemoryClassLoader(id=2152))" + // + // Typically this means "ephemeral class loaded as part of an IDE expression eval request" + // so it's not important to indicate we couldn't do anything with it + // + } + else { + System.out.println("[luceedebug] class information for reftype " + name + " could not be retrieved."); + } return; }