Skip to content

Commit

Permalink
Endret logging 423 Inntektskomponenten
Browse files Browse the repository at this point in the history
  • Loading branch information
rinnan17 committed Oct 21, 2024
1 parent 422fb60 commit c4427ee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ open class InntektskomponentenConsumer(private val restTemplate: HttpHeaderRestT
is RestResponse.Failure -> {
if (abonnerteInntekterRequest) {
// Utelater feillogging ved 400 - Bad Request (inntektsabonnement finnes ikke for personen)
// og 500 (inntektsabonnementet er ikke aktivt ennå)
// og 423 og 500 (inntektsabonnementet er ikke aktivt ennå)
if (restResponse.statusCode == HttpStatus.NOT_FOUND ||
restResponse.statusCode == HttpStatus.INTERNAL_SERVER_ERROR ||
restResponse.statusCode == HttpStatus.BAD_REQUEST
restResponse.statusCode == HttpStatus.BAD_REQUEST ||
restResponse.statusCode == HttpStatus.LOCKED
) {
InntektskomponentenService.LOGGER.warn(
"Mangler abonnement for henting av inntekter fra Inntektskomponenten. " +
Expand Down

0 comments on commit c4427ee

Please sign in to comment.