VOL-2341 Fix protoc merging separate messages together
Change-Id: I8702faad7ed3c1bf8bfb113aea0dc57f681f0bd2
diff --git a/voltha/voltha-kafka-dump/voltha-dump-events.sh b/voltha/voltha-kafka-dump/voltha-dump-events.sh
index 906d4bb..b0eae94 100755
--- a/voltha/voltha-kafka-dump/voltha-dump-events.sh
+++ b/voltha/voltha-kafka-dump/voltha-dump-events.sh
@@ -20,5 +20,6 @@
if [[ $* == *--binary* ]]; then
kafkacat -u -C -b voltha-kafka.voltha -t voltha.events -D "" -o beginning -e
else
- kafkacat -u -C -b voltha-kafka.voltha -t voltha.events -D "" -o beginning -e | protoc --decode=voltha.Event /opt/voltha-kafka-dump/voltha-protos/protos/voltha_protos/events.proto -I /opt/voltha-kafka-dump/voltha-protos/protos
+ kafkacat -u -C -b voltha-kafka.voltha -t voltha.events -D "===VOLTHA-DELIM===" -o beginning -e | \
+ python3.5 ./callprotoc.py voltha.Event /opt/voltha-kafka-dump/voltha-protos/protos/voltha_protos/events.proto /opt/voltha-kafka-dump/voltha-protos/protos
fi