Skip to content

Commit

Permalink
AbortedException 로깅 제외 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hank-Choi authored Feb 7, 2025
1 parent 60c2dfa commit 2f9877b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import org.springframework.web.server.ResponseStatusException
import org.springframework.web.server.ServerWebExchange
import org.springframework.web.server.WebExceptionHandler
import reactor.core.publisher.Mono
import reactor.netty.channel.AbortedException

@Order(-2)
class TruffleWebExceptionHandler(private val hub: IHub) : WebExceptionHandler {
override fun handle(exchange: ServerWebExchange, ex: Throwable): Mono<Void> {
if (ex !is ResponseStatusException) {
if (ex !is ResponseStatusException && ex !is AbortedException) {
hub.captureEvent(
TruffleEvent(
level = TruffleLevel.FATAL,
Expand Down

0 comments on commit 2f9877b

Please sign in to comment.