Skip to content

Commit

Permalink
more logging LSN better
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Dec 17, 2024
1 parent 3292a4e commit d528fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ func processMessage[Items model.Items](
logger.Info("LogicalDecodingMessage",
slog.Bool("Transactional", msg.Transactional),
slog.String("Prefix", msg.Prefix),
slog.Int64("LSN", int64(msg.LSN)))
slog.String("LSN", pglogrepl.LSN(msg.LSN).String()))

Check failure on line 705 in flow/connectors/postgres/cdc.go

View workflow job for this annotation

GitHub Actions / lint

unnecessary conversion (unconvert)
if !msg.Transactional {
batch.UpdateLatestCheckpoint(int64(msg.LSN))
}
Expand Down

0 comments on commit d528fc9

Please sign in to comment.