Skip to content

Commit

Permalink
log error before cleanup in case cleanup fails
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Azores <[email protected]>
  • Loading branch information
andrewazores committed Oct 7, 2024
1 parent 446f0d7 commit 9de4aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/cryostat/discovery/DiscoveryPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public void prePersist(DiscoveryPlugin plugin) {
plugin.delete();
throw new IllegalArgumentException(e);
} catch (Exception e) {
plugin.delete();
logger.error("Discovery Plugin ping failed", e);
plugin.delete();
throw e;
}
}
Expand Down

0 comments on commit 9de4aa1

Please sign in to comment.