[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/01: Reduce logging.
From: |
gnunet |
Subject: |
[libeufin] 01/01: Reduce logging. |
Date: |
Thu, 17 Nov 2022 22:59:58 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 555c76bc93897072f573d80c0ab1d7a36d9259c4
Author: MS <ms@taler.net>
AuthorDate: Thu Nov 17 22:19:08 2022 +0100
Reduce logging.
Not printing stack trace on a invalid
EBICS request.
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 45e5a373..1bc6f312 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -973,11 +973,11 @@ val sandboxApp: Application.() -> Unit = {
* generic error types to EBICS-formatted responses.
*/
catch (e: UtilError) {
- logger.error(e)
+ logger.error(e.reason)
throw EbicsProcessingError("Serving EBICS threw unmanaged
UtilError: ${e.reason}")
}
catch (e: SandboxError) {
- logger.error(e)
+ logger.error(e.reason)
// Should translate to EBICS error code.
when (e.errorCode) {
LibeufinErrorCode.LIBEUFIN_EC_INVALID_STATE -> throw
EbicsProcessingError("Invalid bank state.")
@@ -989,13 +989,13 @@ val sandboxApp: Application.() -> Unit = {
respondEbicsTransfer(call, e.errorText, e.errorCode)
}
catch (e: EbicsRequestError) {
- logger.error(e)
+ logger.error(e.errorText)
// Preventing the last catch-all block
// from capturing a known type.
throw e
}
catch (e: Exception) {
- logger.error(e)
+ logger.error(e.message)
throw EbicsProcessingError("Unmanaged error: $e")
}
return@post
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.