Skip to content

Commit 5439fa9

Browse files
committed
adding a summary info reflecting the order of the plugin stack
1 parent d7bd8d9 commit 5439fa9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/org/opensolaris/opengrok/authorization/AuthorizationFramework.java

+7
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ protected synchronized void loadPlugin(AuthorizationPluginWrapper plugin) {
321321
try {
322322
plugin.load();
323323
plugin.setWorking();
324+
324325
} catch (Throwable ex) {
325326
LOGGER.log(Level.SEVERE, "Plugin \"" + plugin.getClassname() + "\" has failed while loading with exception:", ex);
326327
plugin.setFailed();
@@ -341,6 +342,12 @@ public void loadAllPlugins() {
341342
plugin.setFailed();
342343
}
343344
loadPlugin(plugin);
345+
LOGGER.log(Level.INFO, "[{0}] Plugin \"{1}\" {2} and is {3}.",
346+
new Object[]{
347+
plugin.getRole().toString().toUpperCase(),
348+
plugin.getClassname(),
349+
plugin.hasPlugin() ? "loaded" : "not found",
350+
plugin.isWorking() ? "working" : "failed"});
344351
}
345352
}
346353

0 commit comments

Comments
 (0)