Skip to content

Commit

Permalink
Legg til logging for å verifisere om vi kan rute gjenopptak av fisk t…
Browse files Browse the repository at this point in the history
…il egen benk

Co-authored-by: Tonje Mjøvik Myran <[email protected]>
Co-authored-by: Geir André Lund <[email protected]>
Co-authored-by: Richard Andre Martinsen <[email protected]>
Co-authored-by: Eivind Havnelid Røyrvik <[email protected]>
Co-authored-by: Knut Magne Riise <[email protected]>
  • Loading branch information
6 people committed Oct 14, 2024
1 parent aeb8df6 commit 38136e7
Showing 1 changed file with 17 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 @@ -172,6 +173,22 @@ data class Gjenopptak(
override val journalpost: Journalpost,
) : KategorisertJournalpost(journalpost) {
override fun henvendelseNavn(): String = "Gjenopptak\n"

override fun finnOppgaveBenk(
rutingOppslag: RutingOppslag?,
person: Person?,
): OppgaveBenk {
logger.info {
val erPermittertFraFiskeforedling = rutingOppslag?.permittertFraFiskeForedling() == true
"Ruter søknad om gjenopptak med fisk=$erPermittertFraFiskeforedling. Søknadsdata=$rutingOppslag"
}

return super.finnOppgaveBenk(rutingOppslag, person)
}

private companion object {
val logger = KotlinLogging.logger {}
}
}

data class Generell(
Expand Down

0 comments on commit 38136e7

Please sign in to comment.