From fad4c48b41ea410578e622934a87f08d31fabb0e Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 31 Oct 2021 01:13:29 +0200 Subject: [PATCH] Implemented logging client close errors --- .../kotlin/net/dankito/banking/fints/webclient/KtorWebClient.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/webclient/KtorWebClient.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/webclient/KtorWebClient.kt index 48b7231c..e4e911b6 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/webclient/KtorWebClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/webclient/KtorWebClient.kt @@ -28,6 +28,7 @@ open class KtorWebClient : IWebClient { try { client.close() } catch (e: Exception) { + log.error(e) { "Could not close client" } // Cancel after timeout client.cancel() }