Skip to content

Commit

Permalink
updated messages
Browse files Browse the repository at this point in the history
include successful delete and unsuccessful delete message.
  • Loading branch information
mhogeweg committed Oct 30, 2023
1 parent e4e2913 commit 745fa2f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ public void terminate() {
for (String id : existing) {
PublishResponse deleteResult = client.delete(id);
if ((deleteResult != null) && (deleteResult.getStatus() != null)) {
LOG.info(String.format("Metadata deleted: %1$s", id));
deleted += 1;
}
} else {
String responseMessage = deleteResult != null ? deleteResult.getError().toString() : "None";
LOG.error(String.format("Error deleting metadata: %1$s: response: %2$s", id, responseMessage));
}
}
LOG.info(String.format("%d records has been removed during cleanup.", deleted));
}
Expand Down

0 comments on commit 745fa2f

Please sign in to comment.