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

@ -186,6 +186,7 @@ impl FetchResponseListener for ImageContext {
fn process_request_eof(&mut self) {}
fn process_response(&mut self, metadata: Result<FetchMetadata, NetworkError>) {
debug!("got {:?} for {:?}", metadata.as_ref().map(|_| ()), self.url);
self.image_cache
.notify_pending_response(self.id, FetchResponseMsg::ProcessResponse(metadata.clone()));