From 348477f6e4ff77e78bf7b6db66e4716663c9512d Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 3 Sep 2022 08:26:25 +0200 Subject: [PATCH] Log-Meldungen in ApplicationRebalanceListener angeglichen --- .../java/de/juplo/kafka/ApplicationRebalanceListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java b/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java index a751e75..8e8464f 100644 --- a/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java +++ b/src/main/java/de/juplo/kafka/ApplicationRebalanceListener.java @@ -97,7 +97,7 @@ public class ApplicationRebalanceListener implements RebalanceListener } else { - log.info("Offset commits are disabled! Last commit: {}", lastCommit); + log.info("{} - Offset commits are disabled! Last commit: {}", id, lastCommit); } }); } @@ -108,13 +108,13 @@ public class ApplicationRebalanceListener implements RebalanceListener { if (!commitsEnabled) { - log.info("Offset commits are disabled! Last commit: {}", lastCommit); + log.info("{} - Offset commits are disabled! Last commit: {}", id, lastCommit); return; } if (lastCommit.plus(commitInterval).isBefore(clock.instant())) { - log.debug("Storing data and offsets, last commit: {}", lastCommit); + log.debug("{} - Storing data and offsets, last commit: {}", id, lastCommit); partitions.forEach(partition -> stateRepository.save( new StateDocument( partition, -- 2.20.1