sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pras...@apache.org
Subject git commit: SENTRY-425: Reduce logging verbosity in SentryPolicyServiceClient when creating new connections (Lenni Kuff via Prasad Mujumdar)
Date Fri, 12 Sep 2014 17:38:54 GMT
Repository: incubator-sentry
Updated Branches:
  refs/heads/master bdb11123b -> 218b1ea8e


SENTRY-425: Reduce logging verbosity in SentryPolicyServiceClient when creating new connections
(Lenni Kuff via Prasad Mujumdar)


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/218b1ea8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/218b1ea8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/218b1ea8

Branch: refs/heads/master
Commit: 218b1ea8e77132801bbcfd46c1539edc98909f4b
Parents: bdb1112
Author: Prasad Mujumdar <prasadm@cloudera.com>
Authored: Fri Sep 12 10:38:43 2014 -0700
Committer: Prasad Mujumdar <prasadm@cloudera.com>
Committed: Fri Sep 12 10:38:43 2014 -0700

----------------------------------------------------------------------
 .../provider/db/service/thrift/SentryPolicyServiceClient.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/218b1ea8/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
index 6252051..6358289 100644
--- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
+++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
@@ -136,7 +136,7 @@ public class SentryPolicyServiceClient {
 
       // Resolve server host in the same way as we are doing on server side
       serverPrincipal = SecurityUtil.getServerPrincipal(serverPrincipal, serverAddress.getAddress());
-      LOGGER.info("Using server kerberos principal: " + serverPrincipal);
+      LOGGER.debug("Using server kerberos principal: " + serverPrincipal);
 
       serverPrincipalParts = SaslRpcServer.splitKerberosName(serverPrincipal);
       Preconditions.checkArgument(serverPrincipalParts.length == 3,
@@ -154,12 +154,12 @@ public class SentryPolicyServiceClient {
     } catch (TTransportException e) {
       throw new IOException("Transport exception while opening transport: " + e.getMessage(),
e);
     }
-    LOGGER.info("Successfully opened transport: " + transport + " to " + serverAddress);
+    LOGGER.debug("Successfully opened transport: " + transport + " to " + serverAddress);
     TMultiplexedProtocol protocol = new TMultiplexedProtocol(
       new TBinaryProtocol(transport),
       SentryPolicyStoreProcessor.SENTRY_POLICY_SERVICE_NAME);
     client = new SentryPolicyService.Client(protocol);
-    LOGGER.info("Successfully created client");
+    LOGGER.debug("Successfully created client");
   }
 
   public synchronized void createRole(String requestorUserName, String roleName)


Mime
View raw message