gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Reduce logging.


From: gnunet
Subject: [libeufin] branch master updated: Reduce logging.
Date: Thu, 17 Nov 2022 22:20:12 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new e80ba237 Reduce logging.
e80ba237 is described below

commit e80ba2379126b77221967fcbf213815668f381ac
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 on.
---
 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]