Skip to content

Commit

Permalink
Make logging consistent in both kafka scalers
Browse files Browse the repository at this point in the history
Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
  • Loading branch information
dttung2905 committed Nov 2, 2023
1 parent ad27e38 commit cefece4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scalers/apache_kafka_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (s *apacheKafkaScaler) getTopicPartitions(ctx context.Context) (map[string]
if err != nil {
return nil, fmt.Errorf("error getting metadata: %w", err)
}
s.logger.V(4).Info(fmt.Sprintf("Listed topics %v", metadata.Topics))
s.logger.V(1).Info(fmt.Sprintf("Listed topics %v", metadata.Topics))

if len(s.metadata.topic) == 0 {
// in case of empty topic name, we will get all topics that the consumer group is subscribed to
Expand Down

0 comments on commit cefece4

Please sign in to comment.