Skip to content

Commit

Permalink
log first 50 char
Browse files Browse the repository at this point in the history
  • Loading branch information
alpet committed Jul 3, 2024
1 parent 12eb6fe commit f65b4be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ebms-provider/src/main/kotlin/no/nav/emottak/ebms/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ fun PartData.payload(clearText: Boolean = false): ByteArray {
try {
Base64.getMimeDecoder().decode(this.value.trim())
} catch (e: IllegalArgumentException) {
log.warn("First characters in failing string: <${this.value.substring(0,50)}>", e)
log.warn("Last characters in failing string: <${this.value.takeLast(50)}>", e)
throw e
}
Expand Down

0 comments on commit f65b4be

Please sign in to comment.