Browse files

Changed the last few log messages related to the acquisition of

credentials from info to debug level.
  • Loading branch information...
1 parent 77b20d5 commit 6971ccdf6686f6ac04b1a48e9378122ff955dd2b @smoyer64 committed Nov 20, 2012
View
14 src/main/java/org/jboss/as/plugin/common/AbstractServerConnection.java
@@ -210,13 +210,13 @@ private void getCredentialsFromSettings() {
if(settings != null) {
Server server = settings.getServer(id);
if(server != null) {
- getLog().info(DEBUG_MESSAGE_SETTINGS_HAS_ID);
+ getLog().debug(DEBUG_MESSAGE_SETTINGS_HAS_ID);
password = server.getPassword();
username = server.getUsername();
if(username != null && password != null) {
- getLog().info(DEBUG_MESSAGE_SETTINGS_HAS_CREDS);
+ getLog().debug(DEBUG_MESSAGE_SETTINGS_HAS_CREDS);
} else {
- getLog().info(DEBUG_MESSAGE_NO_CREDS);
+ getLog().debug(DEBUG_MESSAGE_NO_CREDS);
}
} else {
getLog().debug(DEBUG_MESSAGE_NO_SERVER_SECTION);
@@ -226,14 +226,6 @@ private void getCredentialsFromSettings() {
}
}
- private String getPasswordFromSettings() {
- return "testPassword";
- }
-
- private String getUsernameFromSettings() {
- return "testUsername";
- }
-
private boolean isDomainServer(final ModelControllerClient client) {
boolean result = false;
// Check this is really a domain server
View
8 src/test/java/org/jboss/as/plugin/common/AbstractServerConnectionTest.java
@@ -110,8 +110,8 @@ public void testIdProvidedInPomButNoCredentials() {
mojo.setLog(log);
mojo.getCallbackHandler();
InOrder inOrder = inOrder(log);
- inOrder.verify(log).info(Deploy.DEBUG_MESSAGE_SETTINGS_HAS_ID);
- inOrder.verify(log).info(Deploy.DEBUG_MESSAGE_NO_CREDS);
+ inOrder.verify(log).debug(Deploy.DEBUG_MESSAGE_SETTINGS_HAS_ID);
+ inOrder.verify(log).debug(Deploy.DEBUG_MESSAGE_NO_CREDS);
} catch (Exception e) {
e.printStackTrace();
fail("Couldn't find \"deploy\" mojo");
@@ -151,8 +151,8 @@ public void testCredentialsProvidedInSettings() {
mojo.setLog(log);
mojo.getCallbackHandler();
InOrder inOrder = inOrder(log);
- inOrder.verify(log).info(Deploy.DEBUG_MESSAGE_SETTINGS_HAS_ID);
- inOrder.verify(log).info(Deploy.DEBUG_MESSAGE_SETTINGS_HAS_CREDS);
+ inOrder.verify(log).debug(Deploy.DEBUG_MESSAGE_SETTINGS_HAS_ID);
+ inOrder.verify(log).debug(Deploy.DEBUG_MESSAGE_SETTINGS_HAS_CREDS);
} catch (Exception e) {
e.printStackTrace();
fail("Couldn't find \"deploy\" mojo");

0 comments on commit 6971ccd

Please sign in to comment.