Skip to content

Commit

Permalink
add log when create simple_consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
childe committed Jul 9, 2024
1 parent 6020886 commit 236d297
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simple_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func NewSimpleConsumer(topic string, partitionID int32, config interface{}) (*Si

brokerConfig := getBrokerConfigFromConsumerConfig(cfg)

logger.Info("create simple consumer", "topic", topic, "partitionID", partitionID, "config", cfg, "brokerConfig", brokerConfig)
brokers, err := NewBrokersWithConfig(cfg.BootstrapServers, brokerConfig)
if err != nil {
return nil, err
Expand Down

0 comments on commit 236d297

Please sign in to comment.