Skip to content

Commit

Permalink
Merge pull request #1026 from ORCID/updateLangLogging
Browse files Browse the repository at this point in the history
extra logging
  • Loading branch information
bobcaprice authored Aug 5, 2023
2 parents b8b988a + 7d82902 commit 219857b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Member> optional = memberRepository.findBySalesforceId(salesforceId);
if (optional.isPresent()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public ResponseEntity<Member> updateMember(@Valid @RequestBody Member member) th
*/
@PostMapping("/members/{salesforceId}/language/{language}")
public ResponseEntity<Void> 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) {
Expand Down

0 comments on commit 219857b

Please sign in to comment.