Remove log from GlassfishAdvice as log is not available
MODIFY
dd-java-agent/instrumentation/glassfish-4.1/glassfish-4.1.gradle
dd-java-agent/instrumentation/glassfish-4.1/glassfish-4.1.gradle
@@ -6,7 +6,7 @@ muzzle {
pass {
group = 'org.glassfish.main.extras'
module = 'glassfish-embedded-all'
- versions = "[4.1,5("
+ versions = "[4.1,4.1.2)"
}
}

MODIFY
dd-java-agent/instrumentation/glassfish-4.1/src/main/java/datadog/trace/instrumentation/glassfish4/GlassfishInstrumentation.java
dd-java-agent/instrumentation/glassfish-4.1/src/main/java/datadog/trace/instrumentation/glassfish4/GlassfishInstrumentation.java
@@ -58,12 +58,6 @@ public final class GlassfishInstrumentation extends Instrumenter.Default {
@Advice.Argument(value = 0, readOnly = false) String name) {
for (String prefix : Constants.BOOTSTRAP_PACKAGE_PREFIXES) {
if (name.startsWith(prefix)) {
- if (log.isDebugEnabled()) {
- log.debug(
- "Prevented blacklisting of class {}. Stack trace is: \n{}",
- name,
- Utils.getStackTraceAsString());
- }
name = "__datadog_no_blacklist." + name;
break;
}

Remove log from GlassfishAdvice as log is not available