summaryrefslogtreecommitdiff
path: root/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-01-16 21:06:27 +0100
committerMS <ms@taler.net>2023-01-16 21:06:49 +0100
commit5de28f6a6be9caa66132a329aef5b97d6071effc (patch)
tree4a67d4865dda601b69326ca0b419bf7913405507 /sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
parente63854eb7b08631c813e2ae79bfea0239993497a (diff)
downloadlibeufin-5de28f6a6be9caa66132a329aef5b97d6071effc.tar.gz
libeufin-5de28f6a6be9caa66132a329aef5b97d6071effc.tar.bz2
libeufin-5de28f6a6be9caa66132a329aef5b97d6071effc.zip
adapting tests to latest change
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt')
-rw-r--r--sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 906ea637..48f22ca9 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -515,7 +515,7 @@ val sandboxApp: Application.() -> Unit = {
}
// Not necessarily the bank's fault.
exception<SandboxError> { call, cause ->
- logger.debug("Exception while handling '${call.request.uri}', ${cause.reason}")
+ logger.error("Exception while handling '${call.request.uri}', ${cause.reason}")
call.respond(
cause.statusCode,
SandboxErrorJson(
@@ -528,7 +528,7 @@ val sandboxApp: Application.() -> Unit = {
}
// Not necessarily the bank's fault.
exception<UtilError> { call, cause ->
- logger.debug("Exception while handling '${call.request.uri}', ${cause.reason}")
+ logger.error("Exception while handling '${call.request.uri}', ${cause.reason}")
call.respond(
cause.statusCode,
SandboxErrorJson(
@@ -557,7 +557,7 @@ val sandboxApp: Application.() -> Unit = {
"Did not find bad request details."
)
}
- logger.debug(errorMessage)
+ logger.error(errorMessage)
call.respond(
HttpStatusCode.BadRequest,
SandboxErrorJson(