Skip to content

Commit

Permalink
add text decode error log
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Dec 26, 2024
1 parent 2182ae1 commit 0a03df0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ func (qProcessor) Process(
data, err := p.decodeColumnData(tuple.Data, col.DataType, pgtype.TextFormatCode, customTypeMapping)
if err != nil {
p.logger.Error("error decoding text column data", slog.Any("error", err),
slog.String("columnName", col.Name), slog.Int64("dataType", int64(col.DataType)))
slog.String("columnName", col.Name), slog.Int64("dataType", int64(col.DataType)),
slog.String("data", string(tuple.Data)))
return fmt.Errorf("error decoding text column data: %w", err)
}
items.AddColumn(col.Name, data)
Expand Down

0 comments on commit 0a03df0

Please sign in to comment.