We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cbf37d commit a2263f9Copy full SHA for a2263f9
1 file changed
dd-java-agent/testing/src/main/groovy/datadog/trace/agent/test/AgentTestRunner.groovy
@@ -293,7 +293,8 @@ abstract class AgentTestRunner extends DDSpecification implements AgentBuilder.L
293
private static void configureLoggingLevels() {
294
def logger = LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME)
295
296
- if (!logger.class.name.equals("ch.qos.logback.classic.Logger")) {
+ // Check logger class by name to avoid NoClassDefFoundError at runtime for tests without Logback.
297
+ if (logger.class.name != "ch.qos.logback.classic.Logger") {
298
return
299
}
300
0 commit comments