libeufin

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

commit 3159d2465376e6fcc5b55731976a26270b6cfae9
parent 16a0d51d1139659a365b2d123e54886a738934fb
Author: MS <ms@taler.net>
Date:   Sun, 15 Jan 2023 19:15:58 +0100

Logging policy.

Only throwing stacktraces on unmanaged exceptions.

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt @@ -223,7 +223,10 @@ val nexusApp: Application.() -> Unit = { ) } exception<Exception> { call, cause -> - logger.error("Uncaught exception while handling '${call.request.uri}'", cause.message) + logger.error( + "Uncaught exception while handling '${call.request.uri}'", + cause.stackTraceToString() + ) cause.printStackTrace() call.respond( HttpStatusCode.InternalServerError,