mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +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
|
response
|
||||||
} catch (failure: IOException) {
|
} 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
|
throw failure
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user