From bc8304e07ecbb240fcd02e26a7387006e58c3c42 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 4 Nov 2022 12:50:11 +0100 Subject: [PATCH] Das konfigurierte Topic wird auch verwendet --- src/main/java/de/juplo/kafka/SimpleConsumer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/juplo/kafka/SimpleConsumer.java b/src/main/java/de/juplo/kafka/SimpleConsumer.java index 5557a4d..9741e67 100644 --- a/src/main/java/de/juplo/kafka/SimpleConsumer.java +++ b/src/main/java/de/juplo/kafka/SimpleConsumer.java @@ -44,8 +44,8 @@ public class SimpleConsumer { try { - log.info("{} - Subscribing to topic test", id); - consumer.subscribe(Arrays.asList("test")); + log.info("{} - Subscribing to topic {}", id, topic); + consumer.subscribe(Arrays.asList(topic)); running = true; while (true) -- 2.20.1