Skip to content

Commit

Permalink
Forsøk å logg error om vi støter på throwable i refresh-tjenestene (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tendestad authored Dec 6, 2024
1 parent ae70923 commit 565b5d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import no.nav.k9.los.domene.lager.oppgave.v2.TransactionalManager
import no.nav.k9.los.eventhandler.RefreshK9v3.Companion
import no.nav.k9.los.integrasjon.k9.IK9SakService
import no.nav.k9.los.nyoppgavestyring.visningoguttrekk.OppgaveRepository
import org.slf4j.LoggerFactory
Expand Down Expand Up @@ -37,6 +38,9 @@ class RefreshK9(
}
} catch (e: Exception) {
log.error("Feilet ved refresh av oppgaver i k9-sak: " + oppgaveListe.joinToString(", "), e)
} catch (t : Throwable) {
log.error("Feilet hardt (Throwable) ved refresh av oppgaver (v1) mot k9-sak, avslutter tråden", t)
throw t;
}
oppgaveListe.add(channel.receive())
} else {
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9v3.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class RefreshK9v3(
}
} catch (e: Exception) {
log.error("Feilet ved refresh av oppgaver i k9-sak: " + hendelser.joinToString(", "), e)
} catch (t : Throwable) {
log.error("Feilet hardt (Throwable) ved refresh av oppgaver (v3) mot k9-sak, avslutter tråden", t)
throw t;
}
hendelser.add(channel.receive())
} else {
Expand Down

0 comments on commit 565b5d3

Please sign in to comment.