Skip to content

Commit

Permalink
fix: TranslationCommandService translate 예외 발생 시, 로그 info 변경, cause 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seokjin8678 committed Dec 30, 2023
1 parent 3634680 commit 4899ca4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TranslationCommandService(
val translatorClient = translatorClients.getClient(translatorProvider)
translatorClient.requestTranslate(content, targetLanguage)
.doOnError {
log.warn { "뉴스 번역 요청이 실패하였습니다. newsId=${newsId}, translateProgressionId=${translateProgression.id}" }
log.info { "뉴스 번역 요청이 실패하였습니다. newsId=${newsId}, translateProgressionId=${translateProgression.id} cause=${it.message}" }
eventPublisher.publishEvent(TranslatorFailureEvent(translateProgression.id, it.message))
}
.subscribe {
Expand Down

0 comments on commit 4899ca4

Please sign in to comment.