Skip to content

Commit

Permalink
DBZ-8208 Use the Loggings utility class
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros authored and jpechane committed Oct 30, 2024
1 parent 9121bc1 commit eaee061
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1601,14 +1601,14 @@ protected void addToTransaction(String transactionId, LogMinerEventRow row, Supp
catch (DmlParserException e) {
switch (connectorConfig.getEventProcessingFailureHandlingMode()) {
case FAIL:
LOGGER.error("Failed to parse SQL for event '{}'", row);
Loggings.logErrorAndTraceRecord(LOGGER, row, "Failed to parse SQL for event");
throw e;
case WARN:
LOGGER.warn("Failed to parse SQL '{}'. The event '{}' is being ignored and skipped.", row.getRedoSql(), row);
Loggings.logWarningAndTraceRecord(LOGGER, row, "Failed to parse redo SQL, event is being ignored and skipped.");
return;
default:
// In this case, we explicitly log the situation in "debug" only and not as an error/warn.
LOGGER.debug("Failed to parse SQL for event '{}'. This event is being ignored and skipped.", row);
Loggings.logDebugAndTraceRecord(LOGGER, row, "Failed to parse redo SQL, event is being ignored and skipped.");
return;
}
}
Expand Down

0 comments on commit eaee061

Please sign in to comment.