Skip to content

Commit

Permalink
Update S3 processor to emit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cdbartholomew committed Jan 29, 2024
1 parent e5e229a commit 32a8ac5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ private void processRecord(Record record, RecordSink recordSink) {
log.debug("Processed record value: {}", processedRecord.value());
// Send the processed record to the record sink
recordSink.emit(new SourceRecordAndResult(record, List.of(processedRecord), null));
} catch (Exception e) {
} catch (Throwable e) {
log.error("Error processing record: {}", e.getMessage());
recordSink.emit(new SourceRecordAndResult(record, null, e));
}
}

Expand Down

0 comments on commit 32a8ac5

Please sign in to comment.