* 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
15 lines
246 B
Go
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)
|
|
}
|