openreplay/ee/backend/pkg/kafka/log.go
Alexander 56c216d2d5
V1.9.0 sink improvements (#848)
* feat(backend/sink): write big messages directly to file

* feat(backend/sink): manually sync all files on partitions rebalanced event (#847)

* feat(backend): fix vulnerability in /x/net
2022-11-29 11:59:48 +01:00

15 lines
246 B
Go

package kafka
import (
"fmt"
"log"
"github.com/confluentinc/confluent-kafka-go/kafka"
)
func logPartitions(s string, prts []kafka.TopicPartition) {
for _, p := range prts {
s = fmt.Sprintf("%v | %v", s, p.Partition)
}
log.Println(s)
}