From c6052fde008dadb19d7a8e924209d53ec011293f Mon Sep 17 00:00:00 2001 From: "Hedden, Kyle Matthew" Date: Fri, 23 Aug 2019 13:35:16 -0400 Subject: [PATCH] print the s7 urls begin fetched for easier debugging --- MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m index 2e61955..acb69b0 100644 --- a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m +++ b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m @@ -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];