Skip to content

Commit

Permalink
fix: An error message is now logged every time schema validation fail…
Browse files Browse the repository at this point in the history
…s for any record (#2421)
  • Loading branch information
edgarrmondragon authored May 10, 2024
1 parent 9d0c08b commit 46c14f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion singer_sdk/sinks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ def _validate_and_parse(self, record: dict) -> dict:
try:
self._validator.validate(record)
except InvalidRecord:
self.logger.exception("Record validation failed")
if self.fail_on_record_validation_exception:
raise
self.logger.exception("Record validation failed")

self._parse_timestamps_in_record(
record=record,
Expand Down

0 comments on commit 46c14f6

Please sign in to comment.