Author: jbonofre
Date: Mon Apr 23 17:02:46 2012
New Revision: 1329334
URL: http://svn.apache.org/viewvc?rev=1329334&view=rev
Log:
[KARAF-1388] Change log level to DEBUG in KarafPublickeyAuthenticator
Modified:
karaf/branches/karaf-2.2.x/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/KarafPublickeyAuthenticator.java
Modified:
karaf/branches/karaf-2.2.x/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/KarafPublickeyAuthenticator.java
URL:
http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/KarafPublickeyAuthenticator.java?rev=1329334&r1=1329333&r2=1329334&view=diff
==============================================================================
---
karaf/branches/karaf-2.2.x/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/KarafPublickeyAuthenticator.java
(original)
+++
karaf/branches/karaf-2.2.x/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/KarafPublickeyAuthenticator.java
Mon Apr 23 17:02:46 2012
@@ -127,18 +127,18 @@ public class KarafPublickeyAuthenticator
if (af.exists()) {
Long newModificationDate = Long.valueOf(af.lastModified());
if ((this.fileAvailable != null &&
!this.fileAvailable.booleanValue()) ||
!newModificationDate.equals(this.lastModificationDate)) {
- LOGGER.info("Parsing authorized keys file {}...",
KarafPublickeyAuthenticator.this.authorizedKeys);
+ LOGGER.debug("Parsing authorized keys file {}...",
KarafPublickeyAuthenticator.this.authorizedKeys);
this.fileAvailable = Boolean.TRUE;
this.lastModificationDate = newModificationDate;
Map<PublicKey, AuthorizedKey> newKeys =
KarafPublickeyAuthenticator.parseAuthorizedKeys(new FileInputStream(af));
this.setKeys(newKeys);
- LOGGER.info("Successfully parsed {} keys from file
{}", newKeys.size(), KarafPublickeyAuthenticator.this.authorizedKeys);
+ LOGGER.debug("Successfully parsed {} keys from file
{}", newKeys.size(), KarafPublickeyAuthenticator.this.authorizedKeys);
}
} else {
if (this.fileAvailable != null &&
this.fileAvailable.booleanValue()) {
- LOGGER.info("Authorized keys file {} disappeared, will
recheck every minute", KarafPublickeyAuthenticator.this.authorizedKeys);
+ LOGGER.debug("Authorized keys file {} disappeared,
will recheck every minute", KarafPublickeyAuthenticator.this.authorizedKeys);
} else if (this.fileAvailable == null) {
- LOGGER.info("Authorized keys file {} does not exist,
will recheck every minute", KarafPublickeyAuthenticator.this.authorizedKeys);
+ LOGGER.debug("Authorized keys file {} does not exist,
will recheck every minute", KarafPublickeyAuthenticator.this.authorizedKeys);
}
this.fileAvailable = Boolean.FALSE;
this.lastModificationDate = null;
@@ -273,7 +273,7 @@ public class KarafPublickeyAuthenticator
LOGGER.error("Failed authenticate of user {} from {} with unknown
public key.", username, session.getIoSession().getRemoteAddress());
return false;
}
- LOGGER.info("Successful authentication of user {} from {} with public
key {}.", new Object[]{ username, session.getIoSession().getRemoteAddress(),
ak.getAlias() });
+ LOGGER.debug("Successful authentication of user {} from {} with public
key {}.", new Object[]{ username, session.getIoSession().getRemoteAddress(),
ak.getAlias() });
return true;
}