aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/image_cache.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-10-04 13:10:08 -0400
committerJosh Matthews <josh@joshmatthews.net>2019-10-04 15:08:40 -0400
commita241232c2b72480bc6c6133dae1c66774140a410 (patch)
treed22ecc2f3d9e63a75f20868b157934805bb13534 /components/net/image_cache.rs
parent734cf9e1b3a54b582e468048a768dc52b22a2ab3 (diff)
downloadservo-a241232c2b72480bc6c6133dae1c66774140a410.tar.gz
servo-a241232c2b72480bc6c6133dae1c66774140a410.zip
Add useful debug output for HTTP response and image cache.
Diffstat (limited to 'components/net/image_cache.rs')
-rw-r--r--components/net/image_cache.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/net/image_cache.rs b/components/net/image_cache.rs
index 1504f1c06e5..098839e5ad9 100644
--- a/components/net/image_cache.rs
+++ b/components/net/image_cache.rs
@@ -530,6 +530,7 @@ impl ImageCache for ImageCacheImpl {
(FetchResponseMsg::ProcessRequestBody, _) |
(FetchResponseMsg::ProcessRequestEOF, _) => return,
(FetchResponseMsg::ProcessResponse(response), _) => {
+ debug!("Received {:?} for {:?}", response.as_ref().map(|_| ()), id);
let mut store = self.store.lock().unwrap();
let pending_load = store.pending_loads.get_by_key_mut(&id).unwrap();
let (cors_status, metadata) = match response {