diff --git a/member-service/src/main/java/org/orcid/memberportal/service/member/services/MemberService.java b/member-service/src/main/java/org/orcid/memberportal/service/member/services/MemberService.java index a204f6c09..8bcf6c22e 100644 --- a/member-service/src/main/java/org/orcid/memberportal/service/member/services/MemberService.java +++ b/member-service/src/main/java/org/orcid/memberportal/service/member/services/MemberService.java @@ -315,6 +315,7 @@ public MemberOrgIds getCurrentMemberOrgIds(String salesforceId) throws Unauthori } public void updateMemberDefaultLanguage(String salesforceId, String language) throws UnauthorizedMemberAccessException { + LOG.info("Logged in user is {}, language is {}", userService.getLoggedInUser().getEmail()); validateUserAccess(salesforceId); Optional optional = memberRepository.findBySalesforceId(salesforceId); if (optional.isPresent()) { diff --git a/member-service/src/main/java/org/orcid/memberportal/service/member/web/rest/MemberResource.java b/member-service/src/main/java/org/orcid/memberportal/service/member/web/rest/MemberResource.java index 3866f95d3..c12ec9ac3 100644 --- a/member-service/src/main/java/org/orcid/memberportal/service/member/web/rest/MemberResource.java +++ b/member-service/src/main/java/org/orcid/memberportal/service/member/web/rest/MemberResource.java @@ -173,7 +173,7 @@ public ResponseEntity updateMember(@Valid @RequestBody Member member) th */ @PostMapping("/members/{salesforceId}/language/{language}") public ResponseEntity updateMemberDefaultLanguage(@PathVariable String salesforceId, @PathVariable String language) { - LOG.debug("REST request to update member default language : {}", salesforceId); + LOG.info("REST request to update default language for member : {}", salesforceId); try { memberService.updateMemberDefaultLanguage(salesforceId, language); } catch (UnauthorizedMemberAccessException e) {