Skip to content

Commit

Permalink
add some log and reduce some log's level
Browse files Browse the repository at this point in the history
  • Loading branch information
childe committed Jul 11, 2024
1 parent cabe294 commit 2c269ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions brokers.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (brokers *Brokers) BrokersInfo() map[int32]*BrokerInfo {

// NewBrokersWithConfig create a new broker with config
func NewBrokersWithConfig(bootstrapServers string, config *BrokerConfig) (*Brokers, error) {
logger.Info("create new brokers", "bootstrapServers", bootstrapServers, "config", config)
clientID := "healer-newbrokers"
for _, brokerAddr := range strings.Split(bootstrapServers, ",") {
broker, err := NewBroker(brokerAddr, -1, config)
Expand Down
2 changes: 1 addition & 1 deletion fetch_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func (streamDecoder *fetchResponseStreamDecoder) streamDecode(ctx context.Contex
if streamDecoder.more {
streamDecoder.readAll()
}
logger.Info("decode fetch response done", "correlationID", streamDecoder.correlationID)
logger.V(5).Info("decode fetch response done", "correlationID", streamDecoder.correlationID)

return nil
}
1 change: 1 addition & 0 deletions group_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type GroupConsumer struct {
// NewGroupConsumer cretae a new GroupConsumer
func NewGroupConsumer(topic string, config interface{}) (*GroupConsumer, error) {
cfg, err := createConsumerConfig(config)
logger.Info("create group consumer", "origin_config", config, "final_config", cfg)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2c269ed

Please sign in to comment.