struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [41/50] git commit: Uses WARN to report if package or class is excluded
Date Fri, 27 Jun 2014 11:24:09 GMT
Uses WARN to report if package or class is excluded


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/5a5af1b5
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/5a5af1b5
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/5a5af1b5

Branch: refs/heads/feature/WW-4295-localization
Commit: 5a5af1b5879a9865aca03c70ae5bd6f7a3473f7b
Parents: 4ee18f9
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Fri May 23 09:58:52 2014 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Fri May 23 09:58:52 2014 +0200

----------------------------------------------------------------------
 .../com/opensymphony/xwork2/ognl/SecurityMemberAccess.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/5a5af1b5/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java
----------------------------------------------------------------------
diff --git a/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java
b/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java
index 39f882a..d0862e7 100644
--- a/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java
+++ b/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java
@@ -54,15 +54,15 @@ public class SecurityMemberAccess extends DefaultMemberAccess {
     @Override
     public boolean isAccessible(Map context, Object target, Member member, String propertyName)
{
         if (isPackageExcluded(target.getClass().getPackage(), member.getDeclaringClass().getPackage()))
{
-            if (LOG.isDebugEnabled()) {
-                LOG.debug("Target package [#0] and member package [#1] are excluded!", target,
member);
+            if (LOG.isWarnEnabled()) {
+                LOG.warn("Package of target [#0] or package of member [#1] are excluded!",
target, member);
             }
             return false;
         }
 
         if (isClassExcluded(target.getClass(), member.getDeclaringClass())) {
-            if (LOG.isDebugEnabled()) {
-                LOG.debug("Target class [#0] and member type [#1] are excluded!", target,
member);
+            if (LOG.isWarnEnabled()) {
+                LOG.warn("Target class [#0] or declaring class of member type [#1] are excluded!",
target, member);
             }
             return false;
         }


Mime
View raw message