Skip to content

Commit

Permalink
added logging for members not found
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcaprice committed Jan 18, 2024
1 parent a2d3fd5 commit 0d5ff31
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,11 @@ public ResponseEntity<List<Member>> getMembersList() {
@GetMapping("/members/{id}")
public ResponseEntity<Member> getMember(@PathVariable String id) {
LOG.debug("REST request to get Member : {}", id);
Optional<Member> member = memberService.getMember(id);
Optional<Member> membermember-service/src/main/java/org/orcid/memberportal/service/member/web/rest/MemberResource.java
= memberService.getMember(id);
if (!member.isPresent()) {
LOG.warn("Can't find member with id {}", id);
}
return ResponseUtil.wrapOrNotFound(member);
}

Expand Down

0 comments on commit 0d5ff31

Please sign in to comment.