From ffe5eb14b5e5d6baac00e5769f1910a28ad6a6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn-Are=20Flaten?= Date: Thu, 5 Dec 2024 13:51:42 +0100 Subject: [PATCH] chore: add more logging --- .../digitalisering/papirsykmelding/api/SmregistreringClient.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/no/nav/sykdig/digitalisering/papirsykmelding/api/SmregistreringClient.kt b/src/main/kotlin/no/nav/sykdig/digitalisering/papirsykmelding/api/SmregistreringClient.kt index cf33605f..6534ec00 100644 --- a/src/main/kotlin/no/nav/sykdig/digitalisering/papirsykmelding/api/SmregistreringClient.kt +++ b/src/main/kotlin/no/nav/sykdig/digitalisering/papirsykmelding/api/SmregistreringClient.kt @@ -60,6 +60,7 @@ class SmregistreringClient( ): ResponseEntity { if(!isValidOppgaveId(oppgaveId)) throw IllegalArgumentException("Invalid oppgaveId does not contain only alphanumerical characters. oppgaveId: $oppgaveId") + log.info("OppgveId is valid: $oppgaveId") val headers = HttpHeaders() headers.contentType = MediaType.APPLICATION_JSON headers.setBearerAuth(removeBearerPrefix(authorization)) @@ -76,6 +77,7 @@ class SmregistreringClient( HttpEntity(headers), PapirManuellOppgave::class.java, ) + log.info("papirsykmelding: Body from proxy call to smreg ${res.body} ") return res }