Implemented logging client close errors
This commit is contained in:
parent
d35a420c29
commit
fad4c48b41
|
@ -28,6 +28,7 @@ open class KtorWebClient : IWebClient {
|
||||||
try {
|
try {
|
||||||
client.close()
|
client.close()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
log.error(e) { "Could not close client" }
|
||||||
// Cancel after timeout
|
// Cancel after timeout
|
||||||
client.cancel()
|
client.cancel()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue