diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java index 9412cb8a5..82d847255 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java @@ -1123,8 +1123,7 @@ public User updateUser(User user, Map requiredAttributes) throw } return getUser(user.getId(), requiredAttributes); } catch (UserStoreClientException e) { - String errorMessage = "Error while updating attributes of user. " + (LoggerUtils.isLogMaskingEnable ? - LoggerUtils.getMaskedContent(user.getUserName()) : user.getUserName()); + String errorMessage = String.format("Error while updating attributes of user. %s", e.getMessage()); if (log.isDebugEnabled()) { log.debug(errorMessage, e); }