summaryrefslogtreecommitdiff
path: root/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
diff options
context:
space:
mode:
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(