Skip to content

Commit ddbfbf2

Browse files
authored
consumer(ticdc): set one log to debug level, to reduce alloc memory space (#12012)
close #12016
1 parent ef96454 commit ddbfbf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/kafka-consumer/event_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (g *eventsGroup) Append(row *model.RowChangedEvent, offset kafka.Offset) {
4646
if row.CommitTs > g.highWatermark {
4747
g.highWatermark = row.CommitTs
4848
}
49-
log.Info("DML event received",
49+
log.Debug("DML event received",
5050
zap.Int32("partition", g.partition),
5151
zap.Any("offset", offset),
5252
zap.Uint64("commitTs", row.CommitTs),

cmd/kafka-consumer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func main() {
8787
wg.Add(1)
8888
go func() {
8989
defer wg.Done()
90-
if err = http.ListenAndServe("127.0.0.1:6060", nil); err != nil {
90+
if err = http.ListenAndServe(":6060", nil); err != nil {
9191
log.Panic("cannot start the pprof", zap.Error(err))
9292
}
9393
}()

0 commit comments

Comments
 (0)