Skip to content

Commit

Permalink
don't log missing class info for expr eval requests
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareCobbler committed Feb 3, 2024
1 parent 226a00e commit b1fdd8f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion luceedebug/src/main/java/luceedebug/coreinject/LuceeVm.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b1fdd8f

Please sign in to comment.