Skip to content

Commit

Permalink
consumer group: avoid regex log if no topics were added/skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
twmb committed Nov 12, 2021
1 parent 94b6b36 commit 8f34083
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kgo/consumer_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -2282,6 +2282,9 @@ func (r *reNews) skip(topic string) {
}

func (r *reNews) log(cfg *cfg) {
if len(r.added) == 0 && len(r.skipped) == 0 {
return
}
var addeds []string
for re, matches := range r.added {
sort.Strings(matches)
Expand Down

0 comments on commit 8f34083

Please sign in to comment.