Skip to content

Commit

Permalink
refactor: 예외에 따른 로그 메세지 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seokjin8678 committed Mar 22, 2024
1 parent f071f86 commit 5c7750a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ private String getRequestPayload(HttpServletRequest request) {
try {
ContentCachingRequestWrapper cachedRequest = (ContentCachingRequestWrapper) request;
return objectMapper.readTree(cachedRequest.getContentAsByteArray()).toPrettyString();
} catch (IOException | ClassCastException e) {
} catch (IOException e) {
log.warn("ObjectMapper에서 직렬화 중에 문제가 발생했습니다.", e);
} catch (ClassCastException e) {
log.warn("HttpServletRequest 객체를 ContentCachingRequestWrapper 타입으로 형변환 하는 중 문제가 발생했습니다.", e);
}
return "[ObjectMapper에서 직렬화 중에 문제가 발생했습니다.]";
}
Expand Down

0 comments on commit 5c7750a

Please sign in to comment.