Skip to content

Commit

Permalink
Reduce log level for "WAF object had not been closed" (#7657)
Browse files Browse the repository at this point in the history
  • Loading branch information
smola authored Sep 23, 2024
1 parent c33c480 commit 7f040c5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -432,7 +433,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;
}
Expand Down

0 comments on commit 7f040c5

Please sign in to comment.