diff --git a/internal/event/target/kafka.go b/internal/event/target/kafka.go index 4e181b68f..de2483f75 100644 --- a/internal/event/target/kafka.go +++ b/internal/event/target/kafka.go @@ -321,7 +321,6 @@ func (target *KafkaTarget) initKafka() error { if err != sarama.ErrOutOfBrokers { target.loggerOnce(context.Background(), err, target.ID().String()) } - target.producer.Close() return err } target.producer = producer