Additional tracing statements.

This commit is contained in:
Anthony Sute 2019-10-22 19:12:38 -04:00 committed by James Agnew
parent 19247ffb46
commit 306b02e147
1 changed files with 5 additions and 1 deletions

View File

@ -108,10 +108,14 @@ public class AuthorizationInterceptor implements IRuleApplier {
theRequestDetails.getUserData().put(myRequestRuleListKey, rules); theRequestDetails.getUserData().put(myRequestRuleListKey, rules);
} }
Set<AuthorizationFlagsEnum> flags = getFlags(); Set<AuthorizationFlagsEnum> flags = getFlags();
ourLog.trace("Applying {} rules to render an auth decision for operation {}", rules.size(), theOperation); ourLog.trace("Applying {} rules to render an auth decision for operation {}, theInputResource type={}, theOutputResource type={} ", rules.size(), theOperation,
((theInputResource != null) && (theInputResource.getIdElement() != null)) ? theInputResource.getIdElement().getResourceType() : "",
((theOutputResource != null) && (theOutputResource.getIdElement() != null)) ? theOutputResource.getIdElement().getResourceType() : "");
Verdict verdict = null; Verdict verdict = null;
for (IAuthRule nextRule : rules) { for (IAuthRule nextRule : rules) {
ourLog.trace("Rule being applied - {}",
nextRule);
verdict = nextRule.applyRule(theOperation, theRequestDetails, theInputResource, theInputResourceId, theOutputResource, this, flags, thePointcut); verdict = nextRule.applyRule(theOperation, theRequestDetails, theInputResource, theInputResourceId, theOutputResource, this, flags, thePointcut);
if (verdict != null) { if (verdict != null) {
ourLog.trace("Rule {} returned decision {}", nextRule, verdict.getDecision()); ourLog.trace("Rule {} returned decision {}", nextRule, verdict.getDecision());