Skip to content

Commit

Permalink
d - Endrer logstatement til debug
Browse files Browse the repository at this point in the history
  • Loading branch information
MariamPervez committed Jun 28, 2024
1 parent 6c42836 commit edf7b94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class InnhentingService(
if (aktoerid.isBlank()) throw ResponseStatusException(HttpStatus.BAD_REQUEST, "Fant ingen aktoerident")

val fnr = personService.hentIdent(FOLKEREGISTERIDENT, AktoerId(aktoerid))
if(fnr?.id?.isNotEmpty() == true) return fnr.also { logger.info("Returnerer FNR for aktoerId: $aktoerid") }
if(fnr?.id?.isNotEmpty() == true) return fnr.also { logger.debug("Returnerer FNR for aktoerId: $aktoerid") }

val npid = personService.hentIdent(NPID, AktoerId(aktoerid))
if(npid?.id?.isNotEmpty() == true) return npid.also { logger.info("Returnerer NPID for aktoerId: $aktoerid") }
Expand Down

0 comments on commit edf7b94

Please sign in to comment.