Skip to content

Commit

Permalink
Update logging in ExpiredMetadataHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza Jugon committed Nov 27, 2024
1 parent a65f066 commit fd6bd88
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ public void cleanupMetadata(HousekeepingMetadata housekeepingMetadata, LocalDate
}
} catch (BeekeeperIcebergException e) {
updateAttemptsAndStatus(housekeepingMetadata, SKIPPED);
log.warn("Table \"{}.{}\" is skipped because it is iceberg or could not be identified.",
String logMessage = String.format("Table \"%s.%s\" is skipped because it is iceberg or could not be identified.",
housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName());
log.debug("Table \"{}.{}\" is skipped because it is iceberg or could not be identified.",
housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName(), e);
log.warn(logMessage);
log.debug(logMessage, e);
} catch (Exception e) {
updateAttemptsAndStatus(housekeepingMetadata, FAILED);
log.warn("Unexpected exception when deleting metadata for table \"{}.{}\".",
String logMessage = String.format("Unexpected exception when deleting metadata for table \"%s.%s\".",
housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName());
log.debug("Unexpected exception when deleting metadata for table \"{}.{}\".",
housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName(), e);
log.warn(logMessage);
log.debug(logMessage, e);
}
}

Expand Down

0 comments on commit fd6bd88

Please sign in to comment.