[java-opensaml] branch master updated: Add logging.
Scott Cantor
cantor.2 at osu.edu
Wed Aug 15 15:51:08 EDT 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=9d7c4b7fa96e4f62335e12be394fef10c1c1f3b9
The following commit(s) were added to refs/heads/master by this push:
new 9d7c4b7 Add logging.
9d7c4b7 is described below
commit 9d7c4b7fa96e4f62335e12be394fef10c1c1f3b9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Aug 15 15:51:01 2018 -0400
Add logging.
---
.../java/org/opensaml/profile/logic/PredicateAccessControl.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/PredicateAccessControl.java b/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/PredicateAccessControl.java
index f97ee83..30f6f04 100644
--- a/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/PredicateAccessControl.java
+++ b/opensaml-profile-api/src/main/java/org/opensaml/profile/logic/PredicateAccessControl.java
@@ -71,12 +71,16 @@ public class PredicateAccessControl extends AbstractIdentifiableInitializableCom
acc.setOperation(operation);
acc.setResource(resource);
if (predicate.apply(prc)) {
+ log.debug("{} Granted access based on predicate (Operation: {}, Resource: {})",
+ new Object[] {getLogPrefix(), operation, resource});
return true;
} else {
- log.warn("{} Denied request based on predicate", getLogPrefix());
+ log.warn("{} Denied request based on predicate (Operation: {}, Resource: {})",
+ new Object[] {getLogPrefix(), operation, resource});
}
} else {
- log.warn("{} No ProfileRequestContext, access denied", getLogPrefix());
+ log.warn("{} Denied request based on predicate, missing ProfileRequestContext (Operation: {}, Resource: {})"
+ , new Object[] {getLogPrefix(), operation, resource});
}
return false;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list