Skip to content

Commit

Permalink
Adding a log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Nov 5, 2024
1 parent 1afdc97 commit 735c8ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/debezium/converters/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (DateConverter) Convert(value any) (any, error) {
}

if castedPart <= 0 {
slog.Warn("Skipping invalid value: %q", castValue)

Check failure on line 105 in lib/debezium/converters/time.go

View workflow job for this annotation

GitHub Actions / test

call to slog.Warn missing a final value
// MySQL supports '0000-00-00' for date columns if strict mode is not enabled.
return nil, nil
}
Expand Down

0 comments on commit 735c8ae

Please sign in to comment.