Merge branch 'feature/print_s7_urls' into 'develop'
print the s7 urls begin fetched for easier debugging See merge request BPHV_MIPS/mvm_core!27
This commit is contained in:
commit
e59e77d163
@ -15,6 +15,7 @@
|
|||||||
#import "MVMCoreObject.h"
|
#import "MVMCoreObject.h"
|
||||||
#import "MVMCoreConstants.h"
|
#import "MVMCoreConstants.h"
|
||||||
#import "MVMCoreActionUtility.h"
|
#import "MVMCoreActionUtility.h"
|
||||||
|
#import "MVMCoreLoggingHandler.h"
|
||||||
|
|
||||||
@interface MVMCoreCache ()
|
@interface MVMCoreCache ()
|
||||||
|
|
||||||
@ -527,6 +528,8 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt";
|
|||||||
//download image
|
//download image
|
||||||
- (void)downloadImage:(NSURL *)s7URL isGif:(BOOL)isGif fallbackImageName:(nullable NSString *)fallbackImageName completionHandler:(nonnull MVMCoreGetImageBlock)completionHandler {
|
- (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;
|
NSURLSession *session = [MVMCoreSessionObject sharedGlobal].session;
|
||||||
NSURLCache *sharedCache = session.configuration.URLCache;
|
NSURLCache *sharedCache = session.configuration.URLCache;
|
||||||
NSURLRequest *request = [NSURLRequest requestWithURL:s7URL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:ImageTimeOut];
|
NSURLRequest *request = [NSURLRequest requestWithURL:s7URL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:ImageTimeOut];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user