refactor: ReservationValidator 로그 매시지에서의 클래스명 제거

This commit is contained in:
이상진 2025-10-06 16:52:48 +09:00
parent 44c556776d
commit 5bcba12a61

View File

@ -21,17 +21,17 @@ class ReservationValidator {
request: PendingReservationCreateRequest request: PendingReservationCreateRequest
) { ) {
if (schedule.status != ScheduleStatus.HOLD) { if (schedule.status != ScheduleStatus.HOLD) {
log.warn { "[ReservationValidator.validateCanCreate] ${schedule.status}로의 일정 상태 변경에 따른 실패" } log.warn { "[validateCanCreate] ${schedule.status}로의 일정 상태 변경에 따른 실패" }
throw ReservationException(ReservationErrorCode.EXPIRED_HELD_SCHEDULE) throw ReservationException(ReservationErrorCode.EXPIRED_HELD_SCHEDULE)
} }
if (theme.minParticipants > request.participantCount) { 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) throw ReservationException(ReservationErrorCode.INVALID_PARTICIPANT_COUNT)
} }
if (theme.maxParticipants < request.participantCount) { 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) throw ReservationException(ReservationErrorCode.INVALID_PARTICIPANT_COUNT)
} }
} }