Instead of assert, just nslog
This commit is contained in:
parent
2fa77435c1
commit
0612504f1b
|
@ -139,7 +139,9 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) {
|
|||
- (void)checkIfQueueIsIOQueue {
|
||||
const char *currentQueueLabel = dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL);
|
||||
const char *ioQueueLabel = dispatch_queue_get_label(self.ioQueue);
|
||||
NSAssert(strcmp(currentQueueLabel, ioQueueLabel) == 0, @"This method should be called from the ioQueue");
|
||||
if (strcmp(currentQueueLabel, ioQueueLabel) != 0) {
|
||||
NSLog(@"This method should be called from the ioQueue");
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Cache paths
|
||||
|
|
Loading…
Reference in New Issue