Skip to content

Commit

Permalink
Debugging: logger for å se om url blir satt riktig under kall til kon…
Browse files Browse the repository at this point in the history
…toregister.
  • Loading branch information
d142796 committed Jun 3, 2024
1 parent 80f02ee commit 174fb89
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ class KontoregisterServiceImpl(
val requestEntity = lagRequest()
val url = "${properties.uri}/${bedriftNr}"
try {
log.warn("Kontoregister kaller denne urlen: ", url);

val responseMedKontonummerTilBedrift =
restTemplate.exchange<KontoregisterResponse>(url, HttpMethod.GET, requestEntity).body
return responseMedKontonummerTilBedrift?.kontonr
restTemplate.exchange<KontoregisterResponse>(url, HttpMethod.GET, requestEntity)
log.warn("##### Kontoregister kaller denne urlen og headers: ${url} + ${responseMedKontonummerTilBedrift.headers}");
return responseMedKontonummerTilBedrift?.body?.kontonr
} catch (e: RestClientException) {
log.warn("Kontoregister call feiler", e)
}
Expand Down

0 comments on commit 174fb89

Please sign in to comment.