Skip to content

Commit

Permalink
More logs
Browse files Browse the repository at this point in the history
  • Loading branch information
James Harris committed Aug 12, 2015
1 parent 1fd89b6 commit 8e795e3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private LdapContext login(String username, String password) {
userContext = new InitialLdapContext(props, null);
return userContext;
} catch (NamingException e) {
logger.info("Failed to login to ldap user:" + username + " password: " + password, e);
logger.error("Failed to login to ldap user:" + username + " password: " + password, e);
throw new RuntimeException(e);
}
}
Expand All @@ -126,7 +126,7 @@ private Attributes userRecord(LdapContext context, String scope, String name) {
}
try {
if (!results.hasMore()) {
logger.info("Cannot locate user information for " + name);
logger.error("Cannot locate user information for " + name);
return null;
}
} catch (NamingException e) {
Expand Down Expand Up @@ -307,7 +307,7 @@ private List<Identity> searchLdap(LdapContext context, String ldapScope, String
identities.add(attributesToIdentity(results.next().getAttributes()));
}
} catch (NamingException e) {
logger.info("While iterating results while searching: " + name, e);
logger.error("While iterating results while searching: " + name, e);
return identities;
}
return identities;
Expand Down

0 comments on commit 8e795e3

Please sign in to comment.