From 7a845d631243048600b8d5afa7521dd49f946d75 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 20 Jan 2024 09:42:46 +0100 Subject: [PATCH] change: Log response headers --- .../twomartens/timetable/bahnApi/service/BahnResponseLogger.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/service/BahnResponseLogger.kt b/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/service/BahnResponseLogger.kt index c4f0ce9..b5522af 100644 --- a/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/service/BahnResponseLogger.kt +++ b/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/service/BahnResponseLogger.kt @@ -11,7 +11,7 @@ class BahnResponseLogger : ResponseErrorHandler { override fun handleError(response: ClientHttpResponse) { val body = response.body.bufferedReader().use { it.readText() } - log.debug { "Status code [${response.statusCode.value()}], status text [${response.statusText}], body [$body]" } + log.debug { "Status code [${response.statusCode.value()}], status text [${response.statusText}], headers [${response.headers}], body [$body]" } } companion object {