Add image loading failures to error log.
This commit is contained in:
parent
85ebbdf44c
commit
4799c3fcbb
@ -592,6 +592,10 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt";
|
|||||||
//system stores cache based datatask and check cache based on response,
|
//system stores cache based datatask and check cache based on response,
|
||||||
//need to manually store cache for response
|
//need to manually store cache for response
|
||||||
[sharedCache storeCachedResponse:cachedReponse forRequest:request];
|
[sharedCache storeCachedResponse:cachedReponse forRequest:request];
|
||||||
|
} else if (error) {
|
||||||
|
[MVMCoreLoggingHandler addErrorToLog:[MVMCoreErrorObject createErrorObjectForNSError:error location:@"MVMCoreCache->downloadImage"]];
|
||||||
|
} else {
|
||||||
|
[MVMCoreLoggingHandler addErrorToLog:[[MVMCoreErrorObject alloc] initWithTitle:nil messageToLog:[NSString stringWithFormat:@"Failed to download image %@", request.URL.absoluteString] code:0 domain:ErrorDomainSystem location:@"MVMCoreCache->downloadImage"]];
|
||||||
}
|
}
|
||||||
if (isGif) {
|
if (isGif) {
|
||||||
[self checkImage:nil imageData:data fallbackImage:fallbackImageName completionHandler:completionHandler];
|
[self checkImage:nil imageData:data fallbackImage:fallbackImageName completionHandler:completionHandler];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user