directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zengl...@apache.org
Subject directory-kerby git commit: Refine logging output of HasClient.
Date Fri, 16 Mar 2018 03:34:00 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk ca88971b9 -> a4ee9e832


Refine logging output of HasClient.


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/a4ee9e83
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/a4ee9e83
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/a4ee9e83

Branch: refs/heads/trunk
Commit: a4ee9e8325fbe25857de7d4355794fc3d708c03f
Parents: ca88971
Author: zenglinx <frank.zeng@intel.com>
Authored: Fri Mar 16 11:33:10 2018 +0800
Committer: zenglinx <frank.zeng@intel.com>
Committed: Fri Mar 16 11:33:10 2018 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/has/client/HasClient.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/a4ee9e83/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasClient.java
----------------------------------------------------------------------
diff --git a/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasClient.java
b/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasClient.java
index be0e804..14cbd23 100755
--- a/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasClient.java
+++ b/has-project/has-client/src/main/java/org/apache/kerby/has/client/HasClient.java
@@ -200,21 +200,21 @@ public class HasClient {
         }
         type = plugin.getLoginType();
 
-        LOG.info("The plugin type is: " + type);
+        LOG.debug("The plugin type is: " + type);
 
         return requestTgt(authToken, type, config);
     }
 
     private HasClientPlugin getClientTokenPlugin(HasConfig config) throws HasException {
         String pluginName = config.getPluginName();
-        LOG.info("The plugin name getting from config is: " + pluginName);
+        LOG.debug("The plugin name getting from config is: " + pluginName);
         HasClientPlugin clientPlugin;
         if (pluginName != null) {
             clientPlugin = HasClientPluginRegistry.createPlugin(pluginName);
         } else {
             throw new HasException("Please set the plugin name in has client conf");
         }
-        LOG.info("The plugin class is: " + clientPlugin);
+        LOG.debug("The plugin class is: " + clientPlugin);
 
         return clientPlugin;
     }
@@ -360,11 +360,11 @@ public class HasClient {
             String httpHost = config.getHttpHost();
             String httpPort = config.getHttpPort();
             if (httpHost == null) {
-                LOG.info("Can't find the http host in config, the https host will be used.");
+                LOG.warn("Can't find the http host in config, the https host will be used.");
                 httpHost = config.getHttpsHost();
             }
             if (httpPort == null) {
-                LOG.info("Can't find the http port in config, the default http port will
be used.");
+                LOG.warn("Can't find the http port in config, the default http port will
be used.");
                 httpPort = HAS_HTTP_PORT_DEFAULT;
             }
             X509Certificate certificate = getCertificate(httpHost, httpPort);
@@ -471,7 +471,7 @@ public class HasClient {
         kdcRep.setEncPart(encKdcRepPart);
 
         TgtTicket tgtTicket = getTicket(kdcRep);
-        LOG.info("Ticket expire time: " + tgtTicket.getEncKdcRepPart().getEndTime());
+        LOG.debug("Ticket expire time: " + tgtTicket.getEncKdcRepPart().getEndTime());
         return tgtTicket;
 
     }


Mime
View raw message