From 565b5d3586c215dd2e40cd1abba6f04dc743d6a9 Mon Sep 17 00:00:00 2001 From: Tore Langedal Endestad Date: Fri, 6 Dec 2024 12:58:06 +0100 Subject: [PATCH] =?UTF-8?q?Fors=C3=B8k=20=C3=A5=20logg=20error=20om=20vi?= =?UTF-8?q?=20st=C3=B8ter=20p=C3=A5=20throwable=20i=20refresh-tjenestene?= =?UTF-8?q?=20(#2774)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9.kt | 4 ++++ src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9v3.kt | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9.kt b/src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9.kt index c4232a968..9935dc797 100644 --- a/src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9.kt +++ b/src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9.kt @@ -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 @@ -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 { diff --git a/src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9v3.kt b/src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9v3.kt index 82cc723a3..fe4dbd910 100644 --- a/src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9v3.kt +++ b/src/main/kotlin/no/nav/k9/los/eventhandler/RefreshK9v3.kt @@ -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 {