Skip to content

Commit

Permalink
logging status
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitenok committed Dec 17, 2024
1 parent fefa6aa commit ecc6f85
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class JournalpostdistribusjonConsumer(urlEnv: UrlEnv, private val azureAdTokenCo
log.info("Sent document to forced print")
response.body()
} else {

log.error("[FORCED PHYSICAL PRINT]: response status: ${response.status}, body: ${response.body<String>()}")
throw RuntimeException("Failed to send document with uuid $uuid to forced print. journalpostId: $journalpostId. Response status: ${response.status}. Response: $response")
}
} catch (e: Exception) {
Expand Down

0 comments on commit ecc6f85

Please sign in to comment.