mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-02 07:54:19 +08:00
kfk log
This commit is contained in:
parent
bbde362570
commit
78d7588af7
@ -8,6 +8,8 @@ package kafka
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"github.com/Shopify/sarama"
|
"github.com/Shopify/sarama"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -31,6 +33,7 @@ func NewMConsumerGroup(consumerConfig *MConsumerGroupConfig, topics, addrs []str
|
|||||||
//fmt.Println("init address is ", addrs, "topics is ", topics)
|
//fmt.Println("init address is ", addrs, "topics is ", topics)
|
||||||
consumerGroup, err := sarama.NewConsumerGroup(addrs, groupID, config)
|
consumerGroup, err := sarama.NewConsumerGroup(addrs, groupID, config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
fmt.Println("args:", addrs, groupID, config)
|
||||||
panic(err.Error())
|
panic(err.Error())
|
||||||
}
|
}
|
||||||
return &MConsumerGroup{
|
return &MConsumerGroup{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user