Skip to content

GlobalEmbeddedKafkaTestExecutionListener generates log statement even when not enabled #4267

@guyv

Description

@guyv

In what version(s) of Spring for Apache Kafka are you seeing this issue?

4.0.2

Describe the bug

org.springframework.kafka.test.junit.GlobalEmbeddedKafkaTestExecutionListener is disabled by default, but even then it logs following logline:

14:30:06.673 [main] INFO org.springframework.kafka.test.junit.GlobalEmbeddedKafkaTestExecutionListener -- Stopped global Embedded Kafka.

To Reproduce

run a test depending on spring-kafka-test. The GlobalEmbeddedKafkaTestExecutionListener is registered automatically via Java's java.util.ServiceLoader mechanism but disabled by default, nonetheless you will see a log line generated by this Listener

Expected behavior

When GlobalEmbeddedKafkaTestExecutionListener is disabled, no log statements should be visible

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions