print the s7 urls begin fetched for easier debugging

This commit is contained in:
Hedden, Kyle Matthew 2019-08-23 13:35:16 -04:00 committed by Pan, Xinlei (Ryan)
parent 5b500bc138
commit c6052fde00

View File

@ -15,6 +15,7 @@
#import "MVMCoreObject.h"
#import "MVMCoreConstants.h"
#import "MVMCoreActionUtility.h"
#import "MVMCoreLoggingHandler.h"
@interface MVMCoreCache ()
@ -527,6 +528,8 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt";
//download image
- (void)downloadImage:(NSURL *)s7URL isGif:(BOOL)isGif fallbackImageName:(nullable NSString *)fallbackImageName completionHandler:(nonnull MVMCoreGetImageBlock)completionHandler {
MVMCoreLog(@"Fetching image: %@", [s7URL.absoluteString stringByRemovingPercentEncoding]);
NSURLSession *session = [MVMCoreSessionObject sharedGlobal].session;
NSURLCache *sharedCache = session.configuration.URLCache;
NSURLRequest *request = [NSURLRequest requestWithURL:s7URL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:ImageTimeOut];