diff --git a/ebms-provider/src/main/kotlin/no/nav/emottak/ebms/App.kt b/ebms-provider/src/main/kotlin/no/nav/emottak/ebms/App.kt index f4ac7529..0cd35bb9 100644 --- a/ebms-provider/src/main/kotlin/no/nav/emottak/ebms/App.kt +++ b/ebms-provider/src/main/kotlin/no/nav/emottak/ebms/App.kt @@ -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 }