Skip to content

Commit

Permalink
Improve debug log.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeethJJ committed Dec 13, 2023
1 parent 9fcec98 commit c3fb961
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ private boolean isExistingUser(User user) throws IdentityRecoveryException {
.addDomainToName(user.getUserName(), user.getUserStoreDomain());
if (!userStoreManager.isExistingUser(domainQualifiedUsername)) {
if (LOG.isDebugEnabled()) {
LOG.debug("No user found for recovery with username: " + user.toFullQualifiedUsername());
String username = user.toFullQualifiedUsername();
if (username != null) {
LOG.debug("No user found for recovery with username: " + username);
} else {
LOG.debug("No user found for recovery.");
}
}
return false;
}
Expand Down

0 comments on commit c3fb961

Please sign in to comment.