Skip to content

Commit

Permalink
consumer(ticdc): set one log to debug level, to reduce alloc memory s…
Browse files Browse the repository at this point in the history
…pace (#12012)

close #12016
  • Loading branch information
3AceShowHand authored Jan 21, 2025
1 parent ef96454 commit ddbfbf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/kafka-consumer/event_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (g *eventsGroup) Append(row *model.RowChangedEvent, offset kafka.Offset) {
if row.CommitTs > g.highWatermark {
g.highWatermark = row.CommitTs
}
log.Info("DML event received",
log.Debug("DML event received",
zap.Int32("partition", g.partition),
zap.Any("offset", offset),
zap.Uint64("commitTs", row.CommitTs),
Expand Down
2 changes: 1 addition & 1 deletion cmd/kafka-consumer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func main() {
wg.Add(1)
go func() {
defer wg.Done()
if err = http.ListenAndServe("127.0.0.1:6060", nil); err != nil {
if err = http.ListenAndServe(":6060", nil); err != nil {
log.Panic("cannot start the pprof", zap.Error(err))
}
}()
Expand Down

0 comments on commit ddbfbf2

Please sign in to comment.