Skip to content

Commit

Permalink
Add better logging to log the number of records (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Feb 9, 2024
1 parent 094b69d commit 81ae25d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ func (p *PostgresCDCSource) consumeStream(
shutdown := utils.HeartbeatRoutine(p.ctx, func() string {
jobName := p.flowJobName
currRecords := cdcRecordsStorage.Len()
return fmt.Sprintf("pulling records for job - %s, currently have %d records", jobName, currRecords)
msg := fmt.Sprintf("pulling records for job - %s, currently have %d records", jobName, currRecords)
p.logger.Info(msg)
return msg
})
defer shutdown()

Expand Down

0 comments on commit 81ae25d

Please sign in to comment.