generated from pricelees/issue-pr-template
refactor: ReservationValidator 로그 매시지에서의 클래스명 제거
This commit is contained in:
parent
44c556776d
commit
5bcba12a61
@ -21,17 +21,17 @@ class ReservationValidator {
|
||||
request: PendingReservationCreateRequest
|
||||
) {
|
||||
if (schedule.status != ScheduleStatus.HOLD) {
|
||||
log.warn { "[ReservationValidator.validateCanCreate] ${schedule.status}로의 일정 상태 변경에 따른 실패" }
|
||||
log.warn { "[validateCanCreate] ${schedule.status}로의 일정 상태 변경에 따른 실패" }
|
||||
throw ReservationException(ReservationErrorCode.EXPIRED_HELD_SCHEDULE)
|
||||
}
|
||||
|
||||
if (theme.minParticipants > request.participantCount) {
|
||||
log.info { "[ReservationValidator.validateCanCreate] 최소 인원 미달로 인한 예약 실패: minParticipants=${theme.minParticipants}, participantCount=${request.participantCount}" }
|
||||
log.info { "[validateCanCreate] 최소 인원 미달로 인한 예약 실패: minParticipants=${theme.minParticipants}, participantCount=${request.participantCount}" }
|
||||
throw ReservationException(ReservationErrorCode.INVALID_PARTICIPANT_COUNT)
|
||||
}
|
||||
|
||||
if (theme.maxParticipants < request.participantCount) {
|
||||
log.info { "[ReservationValidator.validateCanCreate] 최대 인원 초과로 인한 예약 실패: minParticipants=${theme.minParticipants}, participantCount=${request.participantCount}" }
|
||||
log.info { "[validateCanCreate] 최대 인원 초과로 인한 예약 실패: minParticipants=${theme.minParticipants}, participantCount=${request.participantCount}" }
|
||||
throw ReservationException(ReservationErrorCode.INVALID_PARTICIPANT_COUNT)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user