gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: Logging policy: not throwing stacktrac


From: gnunet
Subject: [libeufin] branch master updated: Logging policy: not throwing stacktraces by default.
Date: Sun, 15 Jan 2023 19:14:56 +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 16a0d51d Logging policy: not throwing stacktraces by default.
16a0d51d is described below

commit 16a0d51d1139659a365b2d123e54886a738934fb
Author: MS <ms@taler.net>
AuthorDate: Sun Jan 15 19:12:46 2023 +0100

    Logging policy: not throwing stacktraces by default.
---
 .../src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index 288dabf7..0ba9d975 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -168,7 +168,7 @@ val nexusApp: Application.() -> Unit = {
     }
     install(StatusPages) {
         exception<NexusError> { call, cause ->
-            logger.error("Caught exception while handling '${call.request.uri} 
(${cause.reason})")
+            logger.error("Caught exception while handling '${call.request.uri} 
(${cause.message})")
             call.respond(
                 status = cause.statusCode,
                 message = ErrorResponse(
@@ -179,7 +179,7 @@ val nexusApp: Application.() -> Unit = {
             )
         }
         exception<JsonMappingException> { call, cause ->
-            logger.error("Exception while handling '${call.request.uri}'", 
cause)
+            logger.error("Exception while handling '${call.request.uri}'", 
cause.message)
             call.respond(
                 HttpStatusCode.BadRequest,
                 message = ErrorResponse(
@@ -190,7 +190,7 @@ val nexusApp: Application.() -> Unit = {
             )
         }
         exception<UtilError> { call, cause ->
-            logger.error("Exception while handling '${call.request.uri}'", 
cause)
+            logger.error("Exception while handling '${call.request.uri}'", 
cause.message)
             call.respond(
                 cause.statusCode,
                 message = ErrorResponse(
@@ -201,7 +201,7 @@ val nexusApp: Application.() -> Unit = {
             )
         }
         exception<EbicsProtocolError> { call, cause ->
-            logger.error("Caught exception while handling 
'${call.request.uri}' (${cause.reason})")
+            logger.error("Caught exception while handling 
'${call.request.uri}' (${cause.message})")
             call.respond(
                 cause.httpStatusCode,
                 message = ErrorResponse(
@@ -223,7 +223,7 @@ val nexusApp: Application.() -> Unit = {
             )
         }
         exception<Exception> { call, cause ->
-            logger.error("Uncaught exception while handling 
'${call.request.uri}'")
+            logger.error("Uncaught exception while handling 
'${call.request.uri}'", cause.message)
             cause.printStackTrace()
             call.respond(
                 HttpStatusCode.InternalServerError,

-- 
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]