Skip to content

Commit

Permalink
Legg til mer logging rundt når vi prøver å rute en fiskesak til gjeno…
Browse files Browse the repository at this point in the history
…pptak
  • Loading branch information
androa committed Oct 23, 2024
1 parent 4f4c80b commit f72ebf8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.dagpenger.mottak

import mu.KotlinLogging
import no.nav.dagpenger.mottak.meldinger.Journalpost
import no.nav.dagpenger.mottak.meldinger.PersonInformasjon.Person
import java.time.LocalDateTime
Expand Down Expand Up @@ -168,6 +169,8 @@ data class NySøknad(
}
}

private val logger = KotlinLogging.logger { }

data class Gjenopptak(
override val journalpost: Journalpost,
) : KategorisertJournalpost(journalpost) {
Expand All @@ -177,7 +180,9 @@ data class Gjenopptak(
rutingOppslag: RutingOppslag?,
person: Person?,
): OppgaveBenk {
logger.info { "Gjenopptak journalpostId=${journalpost.journalpostId()}, rutingOppslag=${rutingOppslag?.let { it::class.java.simpleName }}" }
val erPermittertFraFiskeforedling = rutingOppslag?.permittertFraFiskeForedling() == true
logger.info { "erPermittertFraFiskeforedling=$erPermittertFraFiskeforedling" }

if (erPermittertFraFiskeforedling) {
return OppgaveBenk(
Expand Down

0 comments on commit f72ebf8

Please sign in to comment.