add Logging to various locations #11

Merged
tueem merged 18 commits from feat/logging into dev 2024-12-20 17:51:24 +00:00
Showing only changes of commit 3baf1eda9a - Show all commits

View File

@ -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;