libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit f27b5856875ffd6215022bbebe6067cb9f7cd9b1
parent f51b6f3f61653954b295de6edd2052682ce3e09e
Author: Antoine A <>
Date:   Sat,  6 Sep 2025 11:28:05 +0200

common: production fixes

Diffstat:
Mbank/build.gradle | 2++
Mcommon/src/main/kotlin/api/server.kt | 9++-------
2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/bank/build.gradle b/bank/build.gradle @@ -52,5 +52,7 @@ shadowJar { exclude(dependency("com.kohlschutter.junixsocket:junixsocket-core:.*")) // CLI exclude(dependency("com.github.ajalt.mordant:mordant:.*")) + // Crypto + exclude(dependency("org.bouncycastle:.*")) } } \ No newline at end of file diff --git a/common/src/main/kotlin/api/server.kt b/common/src/main/kotlin/api/server.kt @@ -264,13 +264,8 @@ fun Application.talerApi(logger: Logger, routes: Routing.() -> Unit) { sendPipeline.insertPhaseBefore(ApplicationSendPipeline.Engine, phase) sendPipeline.intercept(phase) { response -> if (logger.isTraceEnabled) { - val content = when (response) { - is OutgoingContent.ByteArrayContent -> String(response.bytes()) - is OutgoingContent.NoContent -> null - else -> error("") - } - if (content != null) { - logger.trace("response ${content}") + if (response is OutgoingContent.ByteArrayContent) { + logger.trace("response ${String(response.bytes())}") } }