From 64bf8f2241bc054553939b46f8e5ef3de5bb5459 Mon Sep 17 00:00:00 2001 From: Charlie Midtlyng Date: Mon, 24 Jun 2024 14:38:24 +0200 Subject: [PATCH] =?UTF-8?q?Trenger=20ikke=20=C3=A5=20logge=204XX-feil=20so?= =?UTF-8?q?m=20warning=20-=20dette=20er=20oftest=20brukerfei=E2=80=A6=20(#?= =?UTF-8?q?821)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/no/nav/familie/log/filter/RequestTimeFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/src/main/java/no/nav/familie/log/filter/RequestTimeFilter.kt b/log/src/main/java/no/nav/familie/log/filter/RequestTimeFilter.kt index 12a46127..d2b5632b 100644 --- a/log/src/main/java/no/nav/familie/log/filter/RequestTimeFilter.kt +++ b/log/src/main/java/no/nav/familie/log/filter/RequestTimeFilter.kt @@ -36,7 +36,7 @@ open class RequestTimeFilter : Filter { code: Int, timer: StopWatch, ) { - if (HttpStatus.valueOf(code).isError) { + if (HttpStatus.valueOf(code).is5xxServerError) { LOG.warn("{} - {} - ({}). Dette tok {}ms", request.method, request.requestURI, code, timer.totalTimeMillis) } else { if (!shouldNotFilter(request.requestURI)) {