Skip to content

Commit

Permalink
[#9889] do less work while ignoring methods
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasCir committed Oct 4, 2022
1 parent 78c0984 commit 768d626
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public Object logAudit(InvocationContext context) throws Exception {
// ignore certain classes for audit altogether. Statically populated cache.
return context.proceed();
}
Method calledMethod = context.getMethod();


// with this we ignore EJB calls which definitely originate from within the backend
// as they can never be called direct from outside (i.e., remote) of the backend
Expand All @@ -154,6 +154,8 @@ public Object logAudit(InvocationContext context) throws Exception {
return context.proceed();
}

Method calledMethod = context.getMethod();

if (ignoreAuditMethods.contains(calledMethod) || !allowedLocalAuditMethods.contains(calledMethod)) {
// ignore certain methods for audit altogether. Statically populated cache.
return context.proceed();
Expand Down

0 comments on commit 768d626

Please sign in to comment.