Repository: airavata
Updated Branches:
  refs/heads/develop 67b43ced0 -> 220cbbd3e


changing the info logs to debug logs in Security Manager


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/220cbbd3
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/220cbbd3
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/220cbbd3

Branch: refs/heads/develop
Commit: 220cbbd3ed92e1e5211ffb9e6cf7036669a968f6
Parents: 67b43ce
Author: scnakandala <[email protected]>
Authored: Mon May 2 19:24:37 2016 -0400
Committer: scnakandala <[email protected]>
Committed: Mon May 2 19:24:37 2016 -0400

----------------------------------------------------------------------
 .../server/security/DefaultAiravataSecurityManager.java   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/220cbbd3/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/security/DefaultAiravataSecurityManager.java
----------------------------------------------------------------------
diff --git 
a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/security/DefaultAiravataSecurityManager.java
 
b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/security/DefaultAiravataSecurityManager.java
index 39eeb87..8657e13 100644
--- 
a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/security/DefaultAiravataSecurityManager.java
+++ 
b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/security/DefaultAiravataSecurityManager.java
@@ -93,11 +93,11 @@ public class DefaultAiravataSecurityManager implements 
AiravataSecurityManager {
                                 username, password, configContext);
                         boolean policyAdded = 
PAPClient.isPolicyAdded(ServerSettings.getAuthorizationPoliyName());
                         if (policyAdded) {
-                            logger.info("Authorization policy is already added 
in the authorization server.");
+                            logger.debug("Authorization policy is already 
added in the authorization server.");
                         } else {
                             //publish the policy and enable it in a separate 
thread
                             PAPClient.addPolicy(defaultXACMLPolicy);
-                            logger.info("Authorization policy is published in 
the authorization server.");
+                            logger.debug("Authorization policy is published in 
the authorization server.");
                         }
                     }else{
                         logger.warn("Identity Server configuration missing for 
gateway : " + gwrp.getGatewayID());
@@ -143,13 +143,13 @@ public class DefaultAiravataSecurityManager implements 
AiravataSecurityManager {
                         new AuthzCacheIndex(subject, gatewayId, accessToken, 
action));
 
                 if (AuthzCachedStatus.AUTHORIZED.equals(authzCachedStatus)) {
-                    logger.info("Authz decision for: (" + subject + ", " + 
accessToken + ", " + action + ") is retrieved from cache.");
+                    logger.debug("Authz decision for: (" + subject + ", " + 
accessToken + ", " + action + ") is retrieved from cache.");
                     return true;
                 } else if 
(AuthzCachedStatus.NOT_AUTHORIZED.equals(authzCachedStatus)) {
-                    logger.info("Authz decision for: (" + subject + ", " + 
accessToken + ", " + action + ") is retrieved from cache.");
+                    logger.debug("Authz decision for: (" + subject + ", " + 
accessToken + ", " + action + ") is retrieved from cache.");
                     return false;
                 } else if 
(AuthzCachedStatus.NOT_CACHED.equals(authzCachedStatus)) {
-                    logger.info("Authz decision for: (" + subject + ", " + 
accessToken + ", " + action + ") is not in the cache. " +
+                    logger.debug("Authz decision for: (" + subject + ", " + 
accessToken + ", " + action + ") is not in the cache. " +
                             "Obtaining it from the authorization server.");
 
                     CredentialStoreService.Client csClient = 
getCredentialStoreServiceClient();

Reply via email to