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.
This commit is contained in:
austinried
2026-10-09 07:58:55 +00:00
parent c262e58a96
commit 713d9a976a
+5 -1
View File
@@ -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
}
}