From: Kai Moritz Date: Sun, 24 Sep 2023 19:38:46 +0000 (+0200) Subject: refactor: Added logging of loaded messages X-Git-Tag: rebase--2024-02-20--15-07~35 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=b931800146ed85ae4dc2d825bbf4ae4484813392;p=demos%2Fkafka%2Fchat refactor: Added logging of loaded messages --- diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/DataChannel.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/DataChannel.java index 99beb438..ec6079b8 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/DataChannel.java +++ b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/DataChannel.java @@ -271,6 +271,11 @@ public class DataChannel implements Runnable, ConsumerRebalanceListener KafkaChatMessageService kafkaChatRoomService = (KafkaChatMessageService) chatRoomData.getChatRoomService(); + log.debug( + "Loaded message from partition={} at offset={}: {}", + partition, + offset, + message); kafkaChatRoomService.persistMessage(message); }