geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject incubator-geode git commit: More Logger
Date Tue, 01 Mar 2016 01:28:16 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-949-2 00ab815f2 -> 6ac8fb492


More Logger


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/6ac8fb49
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6ac8fb49
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6ac8fb49

Branch: refs/heads/feature/GEODE-949-2
Commit: 6ac8fb492f7bda476eb70c0b72c57bb4e0fd0d94
Parents: 00ab815
Author: Kirk Lund <klund@pdx2-office-dhcp32.eng.vmware.com>
Authored: Mon Feb 29 17:28:18 2016 -0800
Committer: Kirk Lund <klund@pdx2-office-dhcp32.eng.vmware.com>
Committed: Mon Feb 29 17:28:18 2016 -0800

----------------------------------------------------------------------
 .../src/test/java/security/AuthzCredentialGenerator.java       | 6 ++++++
 .../src/test/java/templates/security/PKCSAuthenticator.java    | 1 +
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6ac8fb49/geode-core/src/test/java/security/AuthzCredentialGenerator.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/security/AuthzCredentialGenerator.java b/geode-core/src/test/java/security/AuthzCredentialGenerator.java
index 1f34bb1..7ad35d5 100755
--- a/geode-core/src/test/java/security/AuthzCredentialGenerator.java
+++ b/geode-core/src/test/java/security/AuthzCredentialGenerator.java
@@ -19,7 +19,9 @@
 package security;
 
 import com.gemstone.gemfire.cache.operations.OperationContext.OperationCode;
+import com.gemstone.gemfire.internal.logging.LogService;
 import com.gemstone.gemfire.security.AccessControl;
+import org.apache.logging.log4j.Logger;
 
 import java.security.Principal;
 import java.util.ArrayList;
@@ -38,6 +40,7 @@ import java.util.Properties;
  * @since 5.5
  */
 public abstract class AuthzCredentialGenerator {
+  private static final Logger logger = LogService.getLogger();
 
   /**
    * Enumeration for various {@link AuthzCredentialGenerator} implementations.
@@ -255,6 +258,7 @@ public abstract class AuthzCredentialGenerator {
       this.sysProps = init();
     }
     catch (IllegalArgumentException ex) {
+      logger.error("KIRK:SECURITY: ex={}", ex);
       return false;
     }
     return true;
@@ -322,6 +326,7 @@ public abstract class AuthzCredentialGenerator {
         return this.cGen.getValidCredentials(principal);
       }
       catch (IllegalArgumentException ex) {
+        logger.error("KIRK:SECURITY: ex={}", ex);
       }
     }
     return null;
@@ -364,6 +369,7 @@ public abstract class AuthzCredentialGenerator {
         return this.cGen.getValidCredentials(principal);
       }
       catch (IllegalArgumentException ex) {
+        logger.error("KIRK:SECURITY: ex={}", ex);
       }
     }
     return null;

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6ac8fb49/geode-core/src/test/java/templates/security/PKCSAuthenticator.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/templates/security/PKCSAuthenticator.java b/geode-core/src/test/java/templates/security/PKCSAuthenticator.java
index 74ed9fa..7e0b3d1 100755
--- a/geode-core/src/test/java/templates/security/PKCSAuthenticator.java
+++ b/geode-core/src/test/java/templates/security/PKCSAuthenticator.java
@@ -157,6 +157,7 @@ public class PKCSAuthenticator implements Authenticator {
       return new PKCSPrincipal(alias);
     }
     catch (Exception ex) {
+      logger.error("KIRK:SECURITY: ex={}", ex);
       throw getException(ex.toString(), ex);
     }
   }


Mime
View raw message