File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
dd-java-agent/instrumentation/log4j1 Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1+ ext {
2+ // Log4j 1.x reached EOL in 2015 and is not compatible with Java 25+: https://endoflife.date/log4j
3+ maxJavaVersionForTests = JavaVersion . VERSION_24
4+ }
5+
16muzzle {
27 pass {
38 group = ' log4j'
Original file line number Diff line number Diff line change 1- import datadog.environment.JavaVirtualMachine
21import datadog.trace.agent.test.AgentTestRunner
32import org.apache.log4j.Category
43import org.apache.log4j.MDC
54import org.apache.log4j.Priority
65import org.apache.log4j.spi.LoggingEvent
7- import spock.lang.IgnoreIf
86
97class MdcTest extends AgentTestRunner {
10- @IgnoreIf (reason = " TODO: Fix for Java 25." , value = {
11- JavaVirtualMachine .isJavaVersionAtLeast(25 )
12- })
138 def " should preserve mdc when logging injection is #injectionEnabled" () {
149 setup :
1510 injectSysConfig(" logs.injection" , injectionEnabled)
You can’t perform that action at this time.
0 commit comments