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 174fb89 commit 74596c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class KontoregisterServiceImpl(
val requestEntity = lagRequest()
val url = "${properties.uri}/${bedriftNr}"
try {

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

0 comments on commit 74596c8

Please sign in to comment.