Skip to content

Commit

Permalink
Trenger ikke å logge 4XX-feil som warning - dette er oftest brukerfei… (
Browse files Browse the repository at this point in the history
  • Loading branch information
charliemidtlyng authored Jun 24, 2024
1 parent 9dd5659 commit 64bf8f2
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 @@ 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)) {
Expand Down

0 comments on commit 64bf8f2

Please sign in to comment.