about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-05 15:29:29 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-05 15:29:29 +0200
commit757257cb229afc004778e681d3dbdbe9b42e186e (patch)
treec47825183de2cc2f9a4e6a5f94ebf17a92ff5537
parentk8s: fix metallb config resources not being applied (diff)
downloadfs-tracer-backend-757257cb229afc004778e681d3dbdbe9b42e186e.tar.gz
fs-tracer-backend-757257cb229afc004778e681d3dbdbe9b42e186e.tar.bz2
fs-tracer-backend-757257cb229afc004778e681d3dbdbe9b42e186e.zip
payload-processor: print message partition
-rw-r--r--src/payload-processor/processor/processor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/payload-processor/processor/processor.go b/src/payload-processor/processor/processor.go
index fc6792a..4b03bd5 100644
--- a/src/payload-processor/processor/processor.go
+++ b/src/payload-processor/processor/processor.go
@@ -73,6 +73,6 @@ func (p Processor) process(ctx context.Context, cancel context.CancelFunc) {
 }
 
 func (p Processor) handleMessage(m kafka.Message) error {
-	fmt.Printf("(%s): message at offset %d: %s = %s\n", time.Now().String(), m.Offset, string(m.Key), string(m.Value))
+	fmt.Printf("(%s): message at paritition %d: offset %d: %s = %s\n", time.Now().String(), m.Partition, m.Offset, string(m.Key), string(m.Value))
 	return nil
 }