Skip to content

Commit

Permalink
log response
Browse files Browse the repository at this point in the history
  • Loading branch information
olekvernberg committed Aug 8, 2024
1 parent 8367987 commit 05ea28c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,13 @@ class VedtakendringerService(

private fun hentInntekt(fnr: String): HentInntektListeResponse? {
try {
return inntektClient.hentInntekt(
val inntektReponse = inntektClient.hentInntekt(
fnr,
YearMonth.now().minusMonths(5),
YearMonth.now(),
)
secureLogger.info("InntektResponse: $inntektReponse")
return inntektReponse
} catch (e: Exception) {
secureLogger.warn("Feil ved kall mot inntektskomponenten ved kall mot person $fnr. Message: ${e.message} Cause: ${e.cause}")
}
Expand Down

0 comments on commit 05ea28c

Please sign in to comment.