Added logging to catch potential HTTP data source errors

This commit is contained in:
Thong Nguyen 2013-11-18 15:20:42 +00:00
parent 4a38a20c3a
commit 8e90aed1a1
3 changed files with 14 additions and 0 deletions

View File

@ -2005,6 +2005,8 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
[self enqueueBuffer];
}
[self logInfo:[NSString stringWithFormat:@"dataSourceEof for dataSource: %@", dataSourceIn]];
NSObject* queueItemId = currentlyReadingEntry.queueItemId;
dispatch_async(dispatch_get_main_queue(), ^

View File

@ -224,6 +224,13 @@ static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReach
{
[self processRetryOnError];
}
}
-(NSString*) description
{
return [NSString stringWithFormat:@"Auto-recovering HTTP data source with file length: %lld and position: %lld", self.length, self.position];
}
@end

View File

@ -244,4 +244,9 @@
CFRelease(message);
}
- (NSString *)description
{
return [NSString stringWithFormat:@"HTTP data source with file length: %lld and position: %lld", self.length, self.position];
}
@end