Refine logging output of HasClient.
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 @@
}
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 @@
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 @@
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;
}