RÜCKBAU für Rebase der Folge-Branches
authorKai Moritz <kai@juplo.de>
Fri, 14 Mar 2025 15:50:09 +0000 (16:50 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 14 Mar 2025 15:50:46 +0000 (16:50 +0100)
src/main/java/de/juplo/kafka/ExampleProducer.java

index 0bab442..b4051fb 100644 (file)
@@ -77,6 +77,7 @@ public class ExampleProducer
       if (e == null)
       {
         // HANDLE SUCCESS
+        produced++;
         log.debug(
           "{} - Sent message {}={}, partition={}, offset={}, timestamp={}, latency={}ms",
           id,
@@ -103,7 +104,6 @@ public class ExampleProducer
     });
 
     long now = System.currentTimeMillis();
-    produced++;
     log.trace(
       "{} - Queued message {}={}, latency={}ms",
       id,