diff --git a/dd-java-agent/appsec/src/main/java/com/datadog/appsec/gateway/AppSecRequestContext.java b/dd-java-agent/appsec/src/main/java/com/datadog/appsec/gateway/AppSecRequestContext.java index dc4e3c28f70..414761c770b 100644 --- a/dd-java-agent/appsec/src/main/java/com/datadog/appsec/gateway/AppSecRequestContext.java +++ b/dd-java-agent/appsec/src/main/java/com/datadog/appsec/gateway/AppSecRequestContext.java @@ -11,6 +11,7 @@ import datadog.trace.api.Config; import datadog.trace.api.http.StoredBodySupplier; import datadog.trace.api.internal.TraceSegment; +import datadog.trace.api.telemetry.LogCollector; import datadog.trace.bootstrap.instrumentation.api.AgentSpan; import datadog.trace.bootstrap.instrumentation.api.AgentTracer; import io.sqreen.powerwaf.Additive; @@ -433,7 +434,9 @@ public void close() { public void close(boolean requiresPostProcessing) { if (additive != null || derivatives != null) { - log.warn("WAF object had not been closed (probably missed request-end event)"); + log.debug( + LogCollector.SEND_TELEMETRY, + "WAF object had not been closed (probably missed request-end event)"); closeAdditive(); derivatives = null; }