Skip to content

Commit

Permalink
chore: add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jaflaten committed Dec 5, 2024
1 parent 0949f7f commit 3e8bbd9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ class SmregistreringClient(
): ResponseEntity<PapirManuellOppgave> {
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))
val uri =
UriComponentsBuilder.fromHttpUrl("$url/api/v1/oppgave/{oppgaveId}")
.pathSegment(oppgaveId)
.build()
.buildAndExpand(oppgaveId)
.toUri()

val res =
Expand All @@ -76,6 +76,7 @@ class SmregistreringClient(
HttpEntity<String>(headers),
PapirManuellOppgave::class.java,
)
log.info("papirsykmelding: Body from proxy call to smreg ${res.body} ")
return res
}

Expand Down

0 comments on commit 3e8bbd9

Please sign in to comment.