Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

축제 오류 로그 추가 #252

Merged
merged 3 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public class FoodieOption extends BaseTimeEntity {
@Column(nullable = false)
private Long price;

//식품 옵션 삭제 여부
@Column(nullable = false)
private Boolean isDelete;

//식품 옵션 연관관계 매핑
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "foodie_option_category_idx")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public boolean isTokenValid(String token) {
JWT.require(jwtConfig.getAlgorithm()).build().verify(token);
return true;
} catch (Exception e) {

log.error("유효하지 않은 토큰입니다. {}", e.getMessage());
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void onAuthenticationFailure(HttpServletRequest request, HttpServletRespo
ServletException {
response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
response.getWriter().write("소셜 로그인 실패! 서버 로그를 확인해주세요.");

log.info("소셜 로그인에 실패했습니다. 에러 메시지 : {}", exception.getMessage());
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private OptionCategoryDto foodieOptionCategoryToOptionCategoryDto(FoodieOptionCa
.options(
category.getFoodieOptions()
.stream()
.filter(options -> !options.getIsDelete())
.map(this::foodyOptionToOptionDto)
.toList())
.build();
Expand Down
Loading