Skip to content

Commit cde1ce2

Browse files
author
Vladimir Kotal
committed
log a message if a plugin was loaded but not found in auth stack
1 parent 16dc9e7 commit cde1ce2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,10 @@ private void loadClasses(AuthorizationStack stack, List<File> classfiles, List<F
460460
}
461461
// Load the class in memory and try to find a configured space for this class.
462462
if ((pf = handleLoadClass(classname)) != null) {
463-
stack.setPlugin(pf);
463+
if (!stack.setPlugin(pf)) {
464+
LOGGER.log(Level.INFO, "plugin {0} is not configured in the stack",
465+
classname);
466+
}
464467
}
465468
}
466469

@@ -475,7 +478,10 @@ private void loadClasses(AuthorizationStack stack, List<File> classfiles, List<F
475478
}
476479
// Load the class in memory and try to find a configured space for this class.
477480
if ((pf = handleLoadClass(classname)) != null) {
478-
stack.setPlugin(pf);
481+
if (!stack.setPlugin(pf)) {
482+
LOGGER.log(Level.INFO, "plugin {0} is not configured in the stack",
483+
classname);
484+
}
479485
}
480486
}
481487
} catch (IOException ex) {

0 commit comments

Comments
 (0)