Skip to content

Commit

Permalink
[#140] refactor: 예외처리 메시지 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JuHyun419 committed Sep 10, 2022
1 parent 011716c commit e57c213
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,13 @@ class RemindService(
}.onSuccess {
log.info("리마인드 발송 성공 => [User id: ${remind.userId}], response => $response")
}.onFailure {
log.info("리마인드 발송 실패 => [User id: ${remind.userId}, Bookmark id: ${bookmark.id}]")
slackApi.sendSlackAlarm("<!channel> 리마인드 발송 실패 => User id: ${remind.userId}, Bookmark id: ${bookmark.id}")
val message = """
<!channel> 리마인드 발송 실패 => User id: ${remind.userId}, Bookmark id: ${bookmark.id}\n
response => $response
""".trimIndent()

log.info("리마인드 발송 실패 => [User id: ${remind.userId}, Bookmark id: ${bookmark.id}]\nresponse => $response")
slackApi.sendSlackAlarm(message)
}
}
}
Expand Down

0 comments on commit e57c213

Please sign in to comment.