diff --git a/src/main/kotlin/no/nav/klage/oppgave/config/ProblemHandlingControllerAdvice.kt b/src/main/kotlin/no/nav/klage/oppgave/config/ProblemHandlingControllerAdvice.kt index 0168cd1de..166b36413 100644 --- a/src/main/kotlin/no/nav/klage/oppgave/config/ProblemHandlingControllerAdvice.kt +++ b/src/main/kotlin/no/nav/klage/oppgave/config/ProblemHandlingControllerAdvice.kt @@ -9,7 +9,6 @@ import org.springframework.http.ProblemDetail import org.springframework.web.bind.annotation.ExceptionHandler import org.springframework.web.bind.annotation.RestControllerAdvice import org.springframework.web.context.request.NativeWebRequest -import org.springframework.web.context.request.async.AsyncRequestNotUsableException import org.springframework.web.reactive.function.client.WebClientResponseException import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler @@ -22,15 +21,6 @@ class ProblemHandlingControllerAdvice : ResponseEntityExceptionHandler() { private val secureLogger = getSecureLogger() } - @ExceptionHandler - fun handleAsyncRequestNotUsableException( - ex: AsyncRequestNotUsableException, - request: NativeWebRequest - ) { - //Log in regular logs instead of secure logs to make it easier to compare with other suppressed logs - ourLogger.debug("Suppressing AsyncRequestNotUsableException. This is probably due to lost client during async/SSE operations.", ex) - } - @ExceptionHandler fun handleSizeLimitExceededException( ex: AttachmentTooLargeException,