Skip to content

Commit

Permalink
chore(discovery): plugin registration logging (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores authored Oct 15, 2024
1 parent 96fbfc1 commit e45c0ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/io/cryostat/discovery/DiscoveryPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ public void prePersist(DiscoveryPlugin plugin) {
plugin.callback = UriBuilder.fromUri(plugin.callback).userInfo(null).build();
}
try {
logger.debugv(
"Testing discovery plugin callback: {0} @ {1}",
plugin.realm.name, plugin.callback);
PluginCallback.create(plugin).ping();
logger.debugv(
"Registered discovery plugin: {0} @ {1}",
Expand All @@ -118,8 +121,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 e45c0ee

Please sign in to comment.