mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user