From 9c790f4f6fdd38be40c7a6f4e8964a71dd7e126e Mon Sep 17 00:00:00 2001 From: JeethJJ Date: Wed, 13 Dec 2023 10:52:16 +0530 Subject: [PATCH] Improve debug log. --- .../onboard/core/service/password/ResetLinkGenerator.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/org.wso2.carbon.identity.user.onboard.core.service/src/main/java/org/wso2/carbon/identity/user/onboard/core/service/password/ResetLinkGenerator.java b/components/org.wso2.carbon.identity.user.onboard.core.service/src/main/java/org/wso2/carbon/identity/user/onboard/core/service/password/ResetLinkGenerator.java index 88f8bc5f0e..f07b02fb7c 100644 --- a/components/org.wso2.carbon.identity.user.onboard.core.service/src/main/java/org/wso2/carbon/identity/user/onboard/core/service/password/ResetLinkGenerator.java +++ b/components/org.wso2.carbon.identity.user.onboard.core.service/src/main/java/org/wso2/carbon/identity/user/onboard/core/service/password/ResetLinkGenerator.java @@ -134,12 +134,7 @@ private boolean isExistingUser(User user) throws IdentityRecoveryException { .addDomainToName(user.getUserName(), user.getUserStoreDomain()); if (!userStoreManager.isExistingUser(domainQualifiedUsername)) { if (LOG.isDebugEnabled()) { - 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."); - } + LOG.debug("No user found for provided username"); } return false; }