Skip to content

Commit

Permalink
R - Legger til logging for opprett JP
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas committed Sep 23, 2024
1 parent f89f404 commit 51016ce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ class JournalpostKlient(
HttpMethod.POST,
HttpEntity(request.toJson(), headers),
String::class.java)
logger.info("""Journalpost er opprettet med status: ${response.statusCode}
| ${response.body}
""".trimMargin())
mapper.readValue(response.body, OpprettJournalPostResponse::class.java)
} catch (ex: HttpStatusCodeException) {
logger.error("En feil oppstod under opprettelse av journalpost ex: ", ex)
Expand Down

0 comments on commit 51016ce

Please sign in to comment.