log the result of an InteractionCheck
This commit is contained in:
parent
628abb4239
commit
3baf1eda9a
@ -23,7 +23,9 @@ public record AppliedCheck(InteractionCheck<?> check, Annotation annotation) {
|
|||||||
method.setAccessible(true);
|
method.setAccessible(true);
|
||||||
try {
|
try {
|
||||||
logger.debug("Executing pre check {} with context {}", check.getClass().getName(), context.toString());
|
logger.debug("Executing pre check {} with context {}", check.getClass().getName(), context.toString());
|
||||||
return (boolean) method.invoke(check, context, annotation);
|
boolean result = (boolean) method.invoke(check, context, annotation);
|
||||||
|
logger.debug("Pre Check {} {} with context {}", check.getClass().getName(), result ? "succeeded" : "failed", context.toString());
|
||||||
|
return result;
|
||||||
} catch (IllegalAccessException | InvocationTargetException | SecurityException e) {
|
} catch (IllegalAccessException | InvocationTargetException | SecurityException e) {
|
||||||
logger.fatal(e);
|
logger.fatal(e);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user