Skip to content

Commit

Permalink
[BE] 예외의 잘못된 로그레벨 수정 및 사용하지 않는 예외 제거 (#951)
Browse files Browse the repository at this point in the history
* fix: 로그 레벨 info로 조정

* refactor: 사용하지 않는 예외 삭제
  • Loading branch information
skylar1220 authored Oct 27, 2024
1 parent 253ec8a commit af5c020
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 46 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class InvalidTextAnswerLengthException extends BadRequestException {

public InvalidTextAnswerLengthException(long questionId, int answerLength, int minLength, int maxLength) {
super("답변의 길이는 %d자 이상 %d자 이하여야 해요.".formatted(minLength, maxLength));
log.warn("AnswerLength is out of bound - questionId: {}, answerLength: {}, minLength: {}, maxLength: {}",
log.info("AnswerLength is out of bound - questionId: {}, answerLength: {}, minLength: {}, maxLength: {}",
questionId, answerLength, minLength, maxLength, this);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package reviewme.review.service.exception;

import java.util.Collection;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import reviewme.global.exception.BadRequestException;

Expand All @@ -16,9 +15,4 @@ public SubmittedQuestionAndProvidedQuestionMismatchException(Collection<Long> su
submittedQuestionIds, providedQuestionIds, this
);
}

public SubmittedQuestionAndProvidedQuestionMismatchException(long submittedQuestionId,
Collection<Long> providedQuestionIds) {
this(List.of(submittedQuestionId), providedQuestionIds);
}
}

0 comments on commit af5c020

Please sign in to comment.