Implemented logging client close errors
This commit is contained in:
parent
d35a420c29
commit
fad4c48b41
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue