libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 532a49ff9852c0ad428f5374dd214c93a5f1c113
parent 3c3ffeea429bc762054557f40c0754a6ebbfd785
Author: Antoine A <>
Date:   Tue, 20 Aug 2024 17:20:03 +0200

common: improve http logging format

Diffstat:
Mcommon/src/main/kotlin/api/server.kt | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/src/main/kotlin/api/server.kt b/common/src/main/kotlin/api/server.kt @@ -112,9 +112,9 @@ fun Application.talerApi(logger: Logger, routes: Routing.() -> Unit) { val path = call.request.path() val msg = call.logMsg() if (msg != null) { - "$status, $httpMethod $path, $msg" + "${status?.value} $httpMethod $path ${call.processingTimeMillis()}ms: $msg" } else { - "$status, $httpMethod $path" + "${status?.value} $httpMethod $path ${call.processingTimeMillis()}ms" } } }