From 713d9a976a94365219ffe2dba7fc8df7265cc08c Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Thu, 8 Oct 2026 20:19:35 +0000 Subject: [PATCH] logging: log cancelled HTTP requests at verbose Coil cancels in-flight image requests routinely, so an IOException from a cancelled call is not a warning. --- app/src/main/kotlin/com/subtracks/log/Log.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/subtracks/log/Log.kt b/app/src/main/kotlin/com/subtracks/log/Log.kt index bf9204c6..ebdcbb9f 100644 --- a/app/src/main/kotlin/com/subtracks/log/Log.kt +++ b/app/src/main/kotlin/com/subtracks/log/Log.kt @@ -96,7 +96,11 @@ object Log { } response } catch (failure: IOException) { - w("http", "${request.method} ${request.url} failed", failure) + if (chain.call().isCanceled()) { + v("http", "${request.method} ${request.url} cancelled") + } else { + w("http", "${request.method} ${request.url} failed", failure) + } throw failure } }