mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
refactor(kobo): log error responses
This commit is contained in:
parent
ce3ad4c1c7
commit
454c6c7202
1 changed files with 1 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ class KoboProxy(
|
|||
}.apply { if (body != null) body(body) }
|
||||
.retrieve()
|
||||
.onStatus(HttpStatusCode::isError) { _, response ->
|
||||
logger.debug { "Kobo response: $response" }
|
||||
throw ResponseStatusException(response.statusCode, response.statusText)
|
||||
}.toEntity<JsonNode>()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue