Log-Meldungen in ApplicationRebalanceListener angeglichen
[demos/kafka/training] / src / main / java / de / juplo / kafka / ApplicationRebalanceListener.java
index a751e75..8e8464f 100644 (file)
@@ -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,