Skip to content

Commit

Permalink
Updating logging so we only see stack trace on debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza Jugon committed Nov 27, 2024
1 parent 5e67a64 commit a65f066
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,16 @@ public void cleanupMetadata(HousekeepingMetadata housekeepingMetadata, LocalDate
}
} catch (BeekeeperIcebergException e) {
updateAttemptsAndStatus(housekeepingMetadata, SKIPPED);
log
.warn("Table \"{}.{}\" is skipped because is iceberg or could not be identified ",
housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName(), e);
log.warn("Table \"{}.{}\" 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);
} catch (Exception e) {
updateAttemptsAndStatus(housekeepingMetadata, FAILED);
log
.warn("Unexpected exception when deleting metadata for table \"{}.{}\"",
housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName(), e);
log.warn("Unexpected exception when deleting metadata for table \"{}.{}\".",
housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName());
log.debug("Unexpected exception when deleting metadata for table \"{}.{}\".",
housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName(), e);
}
}

Expand Down

0 comments on commit a65f066

Please sign in to comment.