From f65b4bedb3db1aa744445c904adbfbdbf362c04c Mon Sep 17 00:00:00 2001 From: Alexander Petrov Date: Wed, 3 Jul 2024 12:03:27 +0200 Subject: [PATCH] log first 50 char --- ebms-provider/src/main/kotlin/no/nav/emottak/ebms/App.kt | 1 + 1 file changed, 1 insertion(+) 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 }