mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
change: Log complete body
This commit is contained in:
+2
-1
@@ -10,7 +10,8 @@ class BahnResponseLogger : ResponseErrorHandler {
|
||||
}
|
||||
|
||||
override fun handleError(response: ClientHttpResponse) {
|
||||
log.debug { "Response: $response" }
|
||||
val body = response.body.bufferedReader().use { it.readText() }
|
||||
log.debug { "Status code [${response.statusCode.value()}], status text [${response.statusText}], body [$body]" }
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user