Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
B - Logglinje etter content neg
Browse files Browse the repository at this point in the history
  • Loading branch information
thorellefsennav committed May 14, 2024
1 parent 26534c5 commit 2c8601a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import no.nav.tiltakspenger.libs.person.Feilmelding
import no.nav.tiltakspenger.libs.person.PersonRespons

private val LOG = KotlinLogging.logger {}
private val SECURELOG = KotlinLogging.logger("tjenestekall")
const val AZURE_PDL_PATH = "/azure/pdl/personalia"

data class RequestBody(
Expand All @@ -21,6 +22,7 @@ fun Route.AzureRoutes(pdlService: PDLService) {
get(AZURE_PDL_PATH) {
LOG.info { "Mottatt forespørsel for å hente personalia data fra PDL" }
val ident = call.receive<RequestBody>().ident
SECURELOG.info { "Mottatt call med ident: $ident" }
val pdlrespons = pdlService.hentPersonMedAzure(ident)

pdlrespons.fold(
Expand Down

0 comments on commit 2c8601a

Please sign in to comment.