Skip to content

Commit

Permalink
chore: change log level when user is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf committed Nov 7, 2024
1 parent 5568fc7 commit 93d9f25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public Uni<UserDetailResponse> searchUserByFiscalCode(String fiscalCode, String
var userInstitutionFilters = UserInstitutionFilter.builder().userId(userResource.getId().toString()).institutionId(institutionId).build().constructMap();
Uni<String> userMailUuid = userInstitutionService.retrieveFirstFilteredUserInstitution(userUtils.retrieveMapForFilter(userInstitutionFilters))
.onItem().ifNull().continueWith(() -> {
log.error(String.format(USER_NOT_FOUND_ERROR.getMessage(), userResource.getId()));
log.debug(String.format(USER_NOT_FOUND_ERROR.getMessage(), userResource.getId()));
return new UserInstitution();
})
.map(UserInstitution::getUserMailUuid);
Expand Down

0 comments on commit 93d9f25

Please sign in to comment.