Instead of assert, just nslog
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -139,7 +139,9 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) { | @@ -139,7 +139,9 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) { | ||
139 | - (void)checkIfQueueIsIOQueue { | 139 | - (void)checkIfQueueIsIOQueue { |
140 | const char *currentQueueLabel = dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL); | 140 | const char *currentQueueLabel = dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL); |
141 | const char *ioQueueLabel = dispatch_queue_get_label(self.ioQueue); | 141 | const char *ioQueueLabel = dispatch_queue_get_label(self.ioQueue); |
142 | - NSAssert(strcmp(currentQueueLabel, ioQueueLabel) == 0, @"This method should be called from the ioQueue"); | 142 | + if (strcmp(currentQueueLabel, ioQueueLabel) != 0) { |
143 | + NSLog(@"This method should be called from the ioQueue"); | ||
144 | + } | ||
143 | } | 145 | } |
144 | 146 | ||
145 | #pragma mark - Cache paths | 147 | #pragma mark - Cache paths |
-
Please register or login to post a comment