Add useful debug output for HTTP response and image cache.

This commit is contained in:
Josh Matthews 2019-10-04 13:10:08 -04:00
parent 734cf9e1b3
commit a241232c2b
4 changed files with 9 additions and 1 deletions

View file

@ -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 {