From 68918fc98309943e096d9fa7bd6efaffec1081c1 Mon Sep 17 00:00:00 2001 From: Luan Tran <8613937+luantr@users.noreply.github.com> Date: Mon, 7 Apr 2025 15:32:13 +0200 Subject: [PATCH] Add logs for failed create motebehov requests --- .../motebehov/MotebehovOppfolgingstilfelleServiceV2.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/no/nav/syfo/motebehov/MotebehovOppfolgingstilfelleServiceV2.kt b/src/main/kotlin/no/nav/syfo/motebehov/MotebehovOppfolgingstilfelleServiceV2.kt index 47f78e744..2aa96f25f 100644 --- a/src/main/kotlin/no/nav/syfo/motebehov/MotebehovOppfolgingstilfelleServiceV2.kt +++ b/src/main/kotlin/no/nav/syfo/motebehov/MotebehovOppfolgingstilfelleServiceV2.kt @@ -76,6 +76,13 @@ class MotebehovOppfolgingstilfelleServiceV2 @Inject constructor( ) } if (!motebehovStatus.isMotebehovAvailableForAnswer()) { + log.info( + """MotebehovStatus for conflicted requests: + motebehov-id: ${motebehovStatus.motebehov?.id}, + skjemaType: ${motebehovStatus.skjemaType}, + visMotebehov: ${motebehovStatus.visMotebehov} + """.trimMargin() + ) metric.tellHendelse(METRIC_CREATE_FAILED_ARBEIDSGIVER) throwCreateMotebehovConflict( "Failed to create Motebehov for Arbeidsgiver:" +