Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced all NSLogs with DLogs.

  • Loading branch information...
commit 926fdc92659014be467f31630b06a6f0238f8687 1 parent f7f8a37
@aaronpk aaronpk authored
View
2  ASIHTTPRequest/ASIFormDataRequest.m
@@ -207,7 +207,7 @@ - (void)buildPostBody
[super buildPostBody];
#if DEBUG_FORM_DATA_REQUEST
- NSLog(@"%@",[self debugBodyString]);
+ DLog(@"%@",[self debugBodyString]);
[self setDebugBodyString:nil];
#endif
}
View
106 ASIHTTPRequest/ASIHTTPRequest.m
@@ -696,7 +696,7 @@ - (void)setQueue:(id)newQueue
- (void)cancelOnRequestThread
{
#if DEBUG_REQUEST_STATUS
- NSLog(@"[STATUS] Request cancelled: %@",self);
+ DLog(@"[STATUS] Request cancelled: %@",self);
#endif
[[self cancelledLock] lock];
@@ -786,7 +786,7 @@ - (NSData *)responseData
- (void)startSynchronous
{
#if DEBUG_REQUEST_STATUS || DEBUG_THROTTLING
- NSLog(@"[STATUS] Starting synchronous request %@",self);
+ DLog(@"[STATUS] Starting synchronous request %@",self);
#endif
[self setSynchronous:YES];
[self setRunLoopMode:ASIHTTPRequestRunLoopMode];
@@ -811,7 +811,7 @@ - (void)start
- (void)startAsynchronous
{
#if DEBUG_REQUEST_STATUS || DEBUG_THROTTLING
- NSLog(@"[STATUS] Starting asynchronous request %@",self);
+ DLog(@"[STATUS] Starting asynchronous request %@",self);
#endif
[sharedQueue addOperation:self];
}
@@ -962,7 +962,7 @@ - (void)applyAuthorizationHeader
// Do we want to send credentials before we are asked for them?
if (![self shouldPresentCredentialsBeforeChallenge]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will not send credentials to the server until it asks for them",self);
+ DLog(@"[AUTH] Request %@ will not send credentials to the server until it asks for them",self);
#endif
return;
}
@@ -977,7 +977,7 @@ - (void)applyAuthorizationHeader
[self addBasicAuthenticationHeaderWithUsername:[self username] andPassword:[self password]];
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ has a username and password set, and was manually configured to use BASIC. Will send credentials without waiting for an authentication challenge",self);
+ DLog(@"[AUTH] Request %@ has a username and password set, and was manually configured to use BASIC. Will send credentials without waiting for an authentication challenge",self);
#endif
} else {
@@ -996,12 +996,12 @@ - (void)applyAuthorizationHeader
if (CFHTTPMessageApplyCredentialDictionary(request, (CFHTTPAuthenticationRef)[credentials objectForKey:@"Authentication"], (CFDictionaryRef)[credentials objectForKey:@"Credentials"], NULL)) {
[self setAuthenticationScheme:[credentials objectForKey:@"AuthenticationScheme"]];
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ found cached credentials (%@), will reuse without waiting for an authentication challenge",self,[credentials objectForKey:@"AuthenticationScheme"]);
+ DLog(@"[AUTH] Request %@ found cached credentials (%@), will reuse without waiting for an authentication challenge",self,[credentials objectForKey:@"AuthenticationScheme"]);
#endif
} else {
[[self class] removeAuthenticationCredentialsFromSessionStore:[credentials objectForKey:@"Credentials"]];
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Failed to apply cached credentials to request %@. These will be removed from the session store, and this request will wait for an authentication challenge",self);
+ DLog(@"[AUTH] Failed to apply cached credentials to request %@. These will be removed from the session store, and this request will wait for an authentication challenge",self);
#endif
}
@@ -1011,7 +1011,7 @@ - (void)applyAuthorizationHeader
NSDictionary *usernameAndPassword = [credentials objectForKey:@"Credentials"];
[self addBasicAuthenticationHeaderWithUsername:[usernameAndPassword objectForKey:(NSString *)kCFHTTPAuthenticationUsername] andPassword:[usernameAndPassword objectForKey:(NSString *)kCFHTTPAuthenticationPassword]];
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ found cached BASIC credentials from a previous request. Will send credentials without waiting for an authentication challenge",self);
+ DLog(@"[AUTH] Request %@ found cached BASIC credentials from a previous request. Will send credentials without waiting for an authentication challenge",self);
#endif
}
}
@@ -1288,7 +1288,7 @@ - (void)startRequest
// Check if we should have expired this connection
} else if ([[[self connectionInfo] objectForKey:@"expires"] timeIntervalSinceNow] < 0) {
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Not re-using connection #%i because it has expired",[[[self connectionInfo] objectForKey:@"id"] intValue]);
+ DLog(@"[CONNECTION] Not re-using connection #%i because it has expired",[[[self connectionInfo] objectForKey:@"id"] intValue]);
#endif
[persistentConnectionsPool removeObject:[self connectionInfo]];
[self setConnectionInfo:nil];
@@ -1296,7 +1296,7 @@ - (void)startRequest
} else if ([[self connectionInfo] objectForKey:@"request"] != nil) {
//Some other request reused this connection already - we'll have to create a new one
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"%@ - Not re-using connection #%i for request #%i because it is already used by request #%i",self,[[[self connectionInfo] objectForKey:@"id"] intValue],[[self requestID] intValue],[[[self connectionInfo] objectForKey:@"request"] intValue]);
+ DLog(@"%@ - Not re-using connection #%i for request #%i because it is already used by request #%i",self,[[[self connectionInfo] objectForKey:@"id"] intValue],[[self requestID] intValue],[[[self connectionInfo] objectForKey:@"request"] intValue]);
#endif
[self setConnectionInfo:nil];
}
@@ -1340,7 +1340,7 @@ - (void)startRequest
CFReadStreamSetProperty((CFReadStreamRef)[self readStream], kCFStreamPropertyHTTPAttemptPersistentConnection, kCFBooleanTrue);
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Request #%@ will use connection #%i",[self requestID],[[[self connectionInfo] objectForKey:@"id"] intValue]);
+ DLog(@"[CONNECTION] Request #%@ will use connection #%i",[self requestID],[[[self connectionInfo] objectForKey:@"id"] intValue]);
#endif
@@ -1351,7 +1351,7 @@ - (void)startRequest
} else {
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Request %@ will not use a persistent connection",self);
+ DLog(@"[CONNECTION] Request %@ will not use a persistent connection",self);
#endif
}
@@ -1528,7 +1528,7 @@ - (void)checkRequestStatus
#if DEBUG_REQUEST_STATUS
if ([self totalBytesSent] == [self postLength]) {
- NSLog(@"[STATUS] Request %@ finished uploading data",self);
+ DLog(@"[STATUS] Request %@ finished uploading data",self);
}
#endif
}
@@ -1985,7 +1985,7 @@ - (void)requestWillRedirectToURL:(NSURL *)newURL
- (void)requestFinished
{
#if DEBUG_REQUEST_STATUS || DEBUG_THROTTLING
- NSLog(@"[STATUS] Request finished: %@",self);
+ DLog(@"[STATUS] Request finished: %@",self);
#endif
if ([self error] || [self mainRequest]) {
return;
@@ -2052,7 +2052,7 @@ - (void)passOnReceivedData:(NSData *)data
- (void)failWithError:(NSError *)theError
{
#if DEBUG_REQUEST_STATUS || DEBUG_THROTTLING
- NSLog(@"[STATUS] Request %@: %@",self,(theError == ASIRequestCancelledError ? @"Cancelled" : @"Failed"));
+ DLog(@"[STATUS] Request %@: %@",self,(theError == ASIRequestCancelledError ? @"Cancelled" : @"Failed"));
#endif
[self setComplete:YES];
@@ -2060,7 +2060,7 @@ - (void)failWithError:(NSError *)theError
if (theError && [theError code] != ASIAuthenticationErrorType && [theError code] != ASITooMuchRedirectionErrorType) {
[connectionsLock lock];
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Request #%@ failed and will invalidate connection #%@",[self requestID],[[self connectionInfo] objectForKey:@"id"]);
+ DLog(@"[CONNECTION] Request #%@ failed and will invalidate connection #%@",[self requestID],[[self connectionInfo] objectForKey:@"id"]);
#endif
[[self connectionInfo] removeObjectForKey:@"request"];
[persistentConnectionsPool removeObject:[self connectionInfo]];
@@ -2128,7 +2128,7 @@ - (void)readResponseHeaders
#if DEBUG_REQUEST_STATUS
if ([self totalBytesSent] == [self postLength]) {
- NSLog(@"[STATUS] Request %@ received response headers",self);
+ DLog(@"[STATUS] Request %@ received response headers",self);
}
#endif
@@ -2156,7 +2156,7 @@ - (void)readResponseHeaders
} else {
#if DEBUG_HTTP_AUTHENTICATION
if ([self authenticationScheme]) {
- NSLog(@"[AUTH] Request %@ has passed %@ authentication",self,[self authenticationScheme]);
+ DLog(@"[AUTH] Request %@ has passed %@ authentication",self,[self authenticationScheme]);
}
#endif
}
@@ -2168,7 +2168,7 @@ - (void)readResponseHeaders
if (!requestAuthentication && [[self authenticationScheme] isEqualToString:(NSString *)kCFHTTPAuthenticationSchemeBasic] && [self username] && [self password] && [self useSessionPersistence]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ passed BASIC authentication, and will save credentials in the session store for future use",self);
+ DLog(@"[AUTH] Request %@ passed BASIC authentication, and will save credentials in the session store for future use",self);
#endif
NSMutableDictionary *newCredentials = [NSMutableDictionary dictionaryWithCapacity:2];
@@ -2262,7 +2262,7 @@ - (void)readResponseHeaders
[self setConnectionCanBeReused:YES];
[self setPersistentConnectionTimeoutSeconds:timeout];
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Got a keep-alive header, will keep this connection open for %f seconds", [self persistentConnectionTimeoutSeconds]);
+ DLog(@"[CONNECTION] Got a keep-alive header, will keep this connection open for %f seconds", [self persistentConnectionTimeoutSeconds]);
#endif
}
@@ -2270,7 +2270,7 @@ - (void)readResponseHeaders
} else {
[self setConnectionCanBeReused:YES];
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Got no keep-alive header, will keep this connection open for %f seconds", [self persistentConnectionTimeoutSeconds]);
+ DLog(@"[CONNECTION] Got no keep-alive header, will keep this connection open for %f seconds", [self persistentConnectionTimeoutSeconds]);
#endif
}
}
@@ -2334,7 +2334,7 @@ - (BOOL)willRedirect
[self setRequestCookies:[NSMutableArray array]];
#if DEBUG_REQUEST_STATUS
- NSLog(@"[STATUS] Request will redirect (code: %i): %@",responseCode,self);
+ DLog(@"[STATUS] Request will redirect (code: %i): %@",responseCode,self);
#endif
return YES;
@@ -2523,7 +2523,7 @@ - (NSMutableDictionary *)findCredentials
if (user && pass) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will use credentials set on its url",self);
+ DLog(@"[AUTH] Request %@ will use credentials set on its url",self);
#endif
} else {
@@ -2534,7 +2534,7 @@ - (NSMutableDictionary *)findCredentials
pass = [[self mainRequest] password];
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will use credentials from its parent request",self);
+ DLog(@"[AUTH] Request %@ will use credentials from its parent request",self);
#endif
// Let's try to use the ones set in this object
@@ -2543,7 +2543,7 @@ - (NSMutableDictionary *)findCredentials
pass = [self password];
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will use username and password properties as credentials",self);
+ DLog(@"[AUTH] Request %@ will use username and password properties as credentials",self);
#endif
}
}
@@ -2556,7 +2556,7 @@ - (NSMutableDictionary *)findCredentials
pass = [authenticationCredentials password];
#if DEBUG_HTTP_AUTHENTICATION
if (user && pass) {
- NSLog(@"[AUTH] Request %@ will use credentials from the keychain",self);
+ DLog(@"[AUTH] Request %@ will use credentials from the keychain",self);
}
#endif
}
@@ -2592,7 +2592,7 @@ - (NSMutableDictionary *)findCredentials
- (void)retryUsingSuppliedCredentials
{
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ received credentials from its delegate or an ASIAuthenticationDialog, will retry",self);
+ DLog(@"[AUTH] Request %@ received credentials from its delegate or an ASIAuthenticationDialog, will retry",self);
#endif
//If the url was changed by the delegate, our CFHTTPMessageRef will be NULL and we'll go back to the start
if (!request) {
@@ -2606,7 +2606,7 @@ - (void)retryUsingSuppliedCredentials
- (void)cancelAuthentication
{
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ had authentication cancelled by its delegate or an ASIAuthenticationDialog",self);
+ DLog(@"[AUTH] Request %@ had authentication cancelled by its delegate or an ASIAuthenticationDialog",self);
#endif
[self performSelector:@selector(failAuthentication) onThread:[[self class] threadForRequest:self] withObject:nil waitUntilDone:NO];
}
@@ -2931,7 +2931,7 @@ - (void)attemptToApplyCredentialsAndResume
if (!requestAuthentication) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ failed to read authentication information from response headers",self);
+ DLog(@"[AUTH] Request %@ failed to read authentication information from response headers",self);
#endif
[self cancelLoad];
@@ -2953,9 +2953,9 @@ - (void)attemptToApplyCredentialsAndResume
realm = @"";
}
if ([self authenticationScheme] != (NSString *)kCFHTTPAuthenticationSchemeNTLM || [self authenticationRetryCount] == 0) {
- NSLog(@"[AUTH] Request %@ received 401 challenge and must authenticate using %@%@",self,[self authenticationScheme],realm);
+ DLog(@"[AUTH] Request %@ received 401 challenge and must authenticate using %@%@",self,[self authenticationScheme],realm);
} else {
- NSLog(@"[AUTH] Request %@ NTLM handshake step %i",self,[self authenticationRetryCount]+1);
+ DLog(@"[AUTH] Request %@ NTLM handshake step %i",self,[self authenticationRetryCount]+1);
}
#endif
@@ -2970,7 +2970,7 @@ - (void)attemptToApplyCredentialsAndResume
if (err.domain == kCFStreamErrorDomainHTTP && (err.error == kCFStreamErrorHTTPAuthenticationBadUserName || err.error == kCFStreamErrorHTTPAuthenticationBadPassword)) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ had bad credentials, will remove them from the session store if they are cached",self);
+ DLog(@"[AUTH] Request %@ had bad credentials, will remove them from the session store if they are cached",self);
#endif
// Prevent more than one request from asking for credentials at once
@@ -2984,7 +2984,7 @@ - (void)attemptToApplyCredentialsAndResume
if ([self error] || [self isCancelled]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ failed or was cancelled while waiting to access credentials",self);
+ DLog(@"[AUTH] Request %@ failed or was cancelled while waiting to access credentials",self);
#endif
[delegateAuthenticationLock unlock];
@@ -2997,7 +2997,7 @@ - (void)attemptToApplyCredentialsAndResume
if (credentials && [self applyCredentials:[credentials objectForKey:@"Credentials"]]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will reuse cached credentials from the session (%@)",self,[credentials objectForKey:@"AuthenticationScheme"]);
+ DLog(@"[AUTH] Request %@ will reuse cached credentials from the session (%@)",self,[credentials objectForKey:@"AuthenticationScheme"]);
#endif
[delegateAuthenticationLock unlock];
@@ -3011,7 +3011,7 @@ - (void)attemptToApplyCredentialsAndResume
if ([self willAskDelegateForCredentials]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will ask its delegate for credentials to use",self);
+ DLog(@"[AUTH] Request %@ will ask its delegate for credentials to use",self);
#endif
[delegateAuthenticationLock unlock];
@@ -3020,7 +3020,7 @@ - (void)attemptToApplyCredentialsAndResume
if ([self showAuthenticationDialog]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will ask ASIAuthenticationDialog for credentials",self);
+ DLog(@"[AUTH] Request %@ will ask ASIAuthenticationDialog for credentials",self);
#endif
[delegateAuthenticationLock unlock];
@@ -3030,7 +3030,7 @@ - (void)attemptToApplyCredentialsAndResume
}
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ has no credentials to present and must give up",self);
+ DLog(@"[AUTH] Request %@ has no credentials to present and must give up",self);
#endif
[self cancelLoad];
@@ -3048,7 +3048,7 @@ - (void)attemptToApplyCredentialsAndResume
// We've failed NTLM authentication twice, we should assume our credentials are wrong
} else if ([self authenticationScheme] == (NSString *)kCFHTTPAuthenticationSchemeNTLM && [self authenticationRetryCount ] == 2) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ has failed NTLM authentication",self);
+ DLog(@"[AUTH] Request %@ has failed NTLM authentication",self);
#endif
[self failWithError:ASIAuthenticationError];
@@ -3056,7 +3056,7 @@ - (void)attemptToApplyCredentialsAndResume
} else {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ had credentials and they were not marked as bad, but we got a 401 all the same.",self);
+ DLog(@"[AUTH] Request %@ had credentials and they were not marked as bad, but we got a 401 all the same.",self);
#endif
[self failWithError:[NSError errorWithDomain:NetworkRequestErrorDomain code:ASIInternalErrorWhileApplyingCredentialsType userInfo:[NSDictionary dictionaryWithObjectsAndKeys:@"Failed to apply credentials to request",NSLocalizedDescriptionKey,nil]]];
@@ -3072,7 +3072,7 @@ - (void)attemptToApplyCredentialsAndResume
if ([self error] || [self isCancelled]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ failed or was cancelled while waiting to access credentials",self);
+ DLog(@"[AUTH] Request %@ failed or was cancelled while waiting to access credentials",self);
#endif
[delegateAuthenticationLock unlock];
@@ -3085,7 +3085,7 @@ - (void)attemptToApplyCredentialsAndResume
if (credentials && [self applyCredentials:[credentials objectForKey:@"Credentials"]]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will reuse cached credentials from the session (%@)",self,[credentials objectForKey:@"AuthenticationScheme"]);
+ DLog(@"[AUTH] Request %@ will reuse cached credentials from the session (%@)",self,[credentials objectForKey:@"AuthenticationScheme"]);
#endif
[delegateAuthenticationLock unlock];
@@ -3105,7 +3105,7 @@ - (void)attemptToApplyCredentialsAndResume
[self startRequest];
} else {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ failed to apply credentials",self);
+ DLog(@"[AUTH] Request %@ failed to apply credentials",self);
#endif
[delegateAuthenticationLock unlock];
[self failWithError:[NSError errorWithDomain:NetworkRequestErrorDomain code:ASIInternalErrorWhileApplyingCredentialsType userInfo:[NSDictionary dictionaryWithObjectsAndKeys:@"Failed to apply credentials to request",NSLocalizedDescriptionKey,nil]]];
@@ -3115,7 +3115,7 @@ - (void)attemptToApplyCredentialsAndResume
if ([self willAskDelegateForCredentials]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will ask its delegate for credentials to use",self);
+ DLog(@"[AUTH] Request %@ will ask its delegate for credentials to use",self);
#endif
[delegateAuthenticationLock unlock];
@@ -3124,7 +3124,7 @@ - (void)attemptToApplyCredentialsAndResume
if ([self showAuthenticationDialog]) {
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ will ask ASIAuthenticationDialog for credentials",self);
+ DLog(@"[AUTH] Request %@ will ask ASIAuthenticationDialog for credentials",self);
#endif
[delegateAuthenticationLock unlock];
@@ -3132,7 +3132,7 @@ - (void)attemptToApplyCredentialsAndResume
}
#if DEBUG_HTTP_AUTHENTICATION
- NSLog(@"[AUTH] Request %@ has no credentials to present and must give up",self);
+ DLog(@"[AUTH] Request %@ has no credentials to present and must give up",self);
#endif
[delegateAuthenticationLock unlock];
[self failWithError:ASIAuthenticationError];
@@ -3373,7 +3373,7 @@ - (void)handleStreamComplete
{
#if DEBUG_REQUEST_STATUS
- NSLog(@"[STATUS] Request %@ finished downloading data (%qu bytes)",self, [self totalBytesRead]);
+ DLog(@"[STATUS] Request %@ finished downloading data (%qu bytes)",self, [self totalBytesRead]);
#endif
[self setStatusTimer:nil];
[self setDownloadComplete:YES];
@@ -3471,7 +3471,7 @@ - (void)handleStreamComplete
}
#if DEBUG_PERSISTENT_CONNECTIONS
if ([self requestID]) {
- NSLog(@"[CONNECTION] Request #%@ finished using connection #%@",[self requestID], [[self connectionInfo] objectForKey:@"id"]);
+ DLog(@"[CONNECTION] Request #%@ finished using connection #%@",[self requestID], [[self connectionInfo] objectForKey:@"id"]);
}
#endif
[[self connectionInfo] removeObjectForKey:@"request"];
@@ -3612,7 +3612,7 @@ - (BOOL)retryUsingNewConnection
[self setWillRetryRequest:NO];
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Request attempted to use connection #%@, but it has been closed - will retry with a new connection", [[self connectionInfo] objectForKey:@"id"]);
+ DLog(@"[CONNECTION] Request attempted to use connection #%@, but it has been closed - will retry with a new connection", [[self connectionInfo] objectForKey:@"id"]);
#endif
[connectionsLock lock];
[[self connectionInfo] removeObjectForKey:@"request"];
@@ -3624,7 +3624,7 @@ - (BOOL)retryUsingNewConnection
return YES;
}
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Request attempted to use connection #%@, but it has been closed - we have already retried with a new connection, so we must give up", [[self connectionInfo] objectForKey:@"id"]);
+ DLog(@"[CONNECTION] Request attempted to use connection #%@, but it has been closed - we have already retried with a new connection, so we must give up", [[self connectionInfo] objectForKey:@"id"]);
#endif
return NO;
}
@@ -4012,7 +4012,7 @@ + (void)expirePersistentConnections
NSDictionary *existingConnection = [persistentConnectionsPool objectAtIndex:i];
if (![existingConnection objectForKey:@"request"] && [[existingConnection objectForKey:@"expires"] timeIntervalSinceNow] <= 0) {
#if DEBUG_PERSISTENT_CONNECTIONS
- NSLog(@"[CONNECTION] Closing connection #%i because it has expired",[[existingConnection objectForKey:@"id"] intValue]);
+ DLog(@"[CONNECTION] Closing connection #%i because it has expired",[[existingConnection objectForKey:@"id"] intValue]);
#endif
NSInputStream *stream = [existingConnection objectForKey:@"stream"];
if (stream) {
@@ -4468,14 +4468,14 @@ - (void)performThrottling
if ([self readStreamIsScheduled]) {
[self unscheduleReadStream];
#if DEBUG_THROTTLING
- NSLog(@"[THROTTLING] Sleeping request %@ until after %@",self,throttleWakeUpTime);
+ DLog(@"[THROTTLING] Sleeping request %@ until after %@",self,throttleWakeUpTime);
#endif
}
} else {
if (![self readStreamIsScheduled]) {
[self scheduleReadStream];
#if DEBUG_THROTTLING
- NSLog(@"[THROTTLING] Waking up request %@",self);
+ DLog(@"[THROTTLING] Waking up request %@",self);
#endif
}
}
@@ -4538,7 +4538,7 @@ + (void)recordBandwidthUsage
}
}
#if DEBUG_THROTTLING
- NSLog(@"[THROTTLING] ===Used: %u bytes of bandwidth in last measurement period===",bandwidthUsedInLastSecond);
+ DLog(@"[THROTTLING] ===Used: %u bytes of bandwidth in last measurement period===",bandwidthUsedInLastSecond);
#endif
[bandwidthUsageTracker addObject:[NSNumber numberWithUnsignedLong:bandwidthUsedInLastSecond]];
[bandwidthMeasurementDate release];
View
14 AsyncSocket.m
@@ -1405,7 +1405,7 @@ - (BOOL)acceptOnInterface:(NSString *)interface port:(UInt16)port error:(NSError
err = CFSocketSetAddress(theSocket4, (CFDataRef)address4);
if (err != kCFSocketSuccess) goto Failed;
- //NSLog(@"theSocket4: %hu", [self localPortFromCFSocket4:theSocket4]);
+ //DLog(@"theSocket4: %hu", [self localPortFromCFSocket4:theSocket4]);
}
if(port == 0 && theSocket4 && theSocket6)
@@ -1427,7 +1427,7 @@ - (BOOL)acceptOnInterface:(NSString *)interface port:(UInt16)port error:(NSError
err = CFSocketSetAddress(theSocket6, (CFDataRef)address6);
if (err != kCFSocketSuccess) goto Failed;
- //NSLog(@"theSocket6: %hu", [self localPortFromCFSocket6:theSocket6]);
+ //DLog(@"theSocket6: %hu", [self localPortFromCFSocket6:theSocket6]);
}
theFlags |= kDidStartDelegate;
@@ -1901,7 +1901,7 @@ - (BOOL)createStreamsFromNative:(CFSocketNativeHandle)native error:(NSError **)e
{
NSError *err = [self getStreamError];
- NSLog(@"AsyncSocket %p couldn't create streams from accepted socket: %@", self, err);
+ DLog(@"AsyncSocket %p couldn't create streams from accepted socket: %@", self, err);
if (errPtr) *errPtr = err;
return NO;
@@ -2114,7 +2114,7 @@ - (BOOL)setSocketFromStreamsAndReturnError:(NSError **)errPtr
CFDataRef peeraddr = CFSocketCopyPeerAddress(theSocket);
if(peeraddr == NULL)
{
- NSLog(@"AsyncSocket couldn't determine IP version of socket");
+ DLog(@"AsyncSocket couldn't determine IP version of socket");
CFRelease(theSocket);
@@ -4207,7 +4207,7 @@ - (void)doCFSocketCallback:(CFSocketCallBackType)type
[self doAcceptFromSocket:sock withNewNativeSocket:*((CFSocketNativeHandle *)pData)];
break;
default:
- NSLog(@"AsyncSocket %p received unexpected CFSocketCallBackType %i", self, (int)type);
+ DLog(@"AsyncSocket %p received unexpected CFSocketCallBackType %i", self, (int)type);
break;
}
}
@@ -4240,7 +4240,7 @@ - (void)doCFReadStreamCallback:(CFStreamEventType)type forStream:(CFReadStreamRe
[self closeWithError: [self errorFromCFStreamError:err]];
break;
default:
- NSLog(@"AsyncSocket %p received unexpected CFReadStream callback, CFStreamEventType %i", self, (int)type);
+ DLog(@"AsyncSocket %p received unexpected CFReadStream callback, CFStreamEventType %i", self, (int)type);
}
}
@@ -4272,7 +4272,7 @@ - (void)doCFWriteStreamCallback:(CFStreamEventType)type forStream:(CFWriteStream
[self closeWithError: [self errorFromCFStreamError:err]];
break;
default:
- NSLog(@"AsyncSocket %p received unexpected CFWriteStream callback, CFStreamEventType %i", self, (int)type);
+ DLog(@"AsyncSocket %p received unexpected CFWriteStream callback, CFStreamEventType %i", self, (int)type);
}
}
View
4 AsyncUdpSocket.m
@@ -1777,7 +1777,7 @@ - (BOOL)canAcceptBytes:(CFSocketRef)sockRef
if(theNativeSocket == 0)
{
- NSLog(@"Error - Could not get CFSocketNativeHandle from CFSocketRef");
+ DLog(@"Error - Could not get CFSocketNativeHandle from CFSocketRef");
return NO;
}
@@ -2003,7 +2003,7 @@ - (BOOL)hasBytesAvailable:(CFSocketRef)sockRef
if(theNativeSocket == 0)
{
- NSLog(@"Error - Could not get CFSocketNativeHandle from CFSocketRef");
+ DLog(@"Error - Could not get CFSocketNativeHandle from CFSocketRef");
return NO;
}
View
2  Classes/GameListViewController.m
@@ -119,7 +119,7 @@ - (void)authenticationDidSucceed:(NSNotificationCenter *)notification {
}
- (void)tableView:(UITableView *)t didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- NSLog(@"Selected game %d", indexPath.row);
+ DLog(@"Selected game %d", indexPath.row);
[t deselectRowAtIndexPath:indexPath animated:NO];
self.selectedIndex = indexPath;
View
14 Classes/GeoloqiReadClient.m
@@ -39,11 +39,11 @@ - (void)normalConnect
NSString *host = LQ_READ_SOCKET_HOST;
UInt16 port = LQ_READ_SOCKET_PORT;
- NSLog(@"[Read] Connecting to %@:%i", host, port);
+ DLog(@"[Read] Connecting to %@:%i", host, port);
if (![asyncSocket connectToHost:host onPort:port withTimeout:1 error:&error])
{
- NSLog(@"[Read] Error connecting: %@", error);
+ DLog(@"[Read] Error connecting: %@", error);
}
else
{
@@ -52,7 +52,7 @@ - (void)normalConnect
ntohl(tokenBytes[0]), ntohl(tokenBytes[1]), ntohl(tokenBytes[2]), ntohl(tokenBytes[3])];
NSData *data = [hexDeviceID dataUsingEncoding:NSASCIIStringEncoding];
- NSLog(@"[Read] Writing device id: %@", data);
+ DLog(@"[Read] Writing device id: %@", data);
[asyncSocket writeData:data withTimeout:TIMEOUT_SEC tag:TAG_DEVICE_ID_SENT];
}
}
@@ -66,19 +66,19 @@ - (void)reconnect
// After the client finishes writing the UUID, start listening for new data
- (void)onSocket:(AsyncSocket *)sock didWriteDataWithTag:(long)tag
{
- NSLog(@"[Read] Did write data with tag %d", tag);
+ DLog(@"[Read] Did write data with tag %d", tag);
[asyncSocket readDataToData:[AsyncSocket CRLFData] withTimeout:-1 tag:TAG_MESSAGE_RECEIVED];
}
- (void)onSocket:(AsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
{
- NSLog(@"[Read] Did read data with tag %d: %@", tag, data);
+ DLog(@"[Read] Did read data with tag %d: %@", tag, data);
NSError **err;
NSDictionary *dict;
dict = [[CJSONDeserializer deserializer] deserialize:data error:err];
- NSLog(@"[Read] Message: %@", dict);
+ DLog(@"[Read] Message: %@", dict);
if([dict objectForKey:@"aps"] == nil) {
// Custom push data, pass off to the web view
@@ -122,7 +122,7 @@ - (void)disconnect
- (void) socket:(AsyncSocket *)sock didConnectToHost:(NSString *)host port:(UInt16)port
{
- NSLog(@"[Read] Connected on local host:%@ port:%hu", [sock localHost], [sock localPort]);
+ DLog(@"[Read] Connected on local host:%@ port:%hu", [sock localHost], [sock localPort]);
}
View
32 Classes/GeoloqiSocketClient.m
@@ -74,12 +74,12 @@ - (void) normalConnect
NSString *host = LQ_WRITE_SOCKET_HOST;
UInt16 port = LQ_WRITE_SOCKET_PORT;
- NSLog(@"[Write] Connecting to %@:%i", host, port);
+ DLog(@"[Write] Connecting to %@:%i", host, port);
// Change to use UDP
if (![asyncSocket connectToHost:LQ_WRITE_SOCKET_HOST onPort:LQ_WRITE_SOCKET_PORT error:&error])
{
- NSLog(@"[Write] Error connecting: %@", error);
+ DLog(@"[Write] Error connecting: %@", error);
}
}
@@ -108,10 +108,10 @@ - (void)startMonitoringLocation {
/*
[locationManager startMonitoringSignificantLocationChanges];
if (significantUpdatesOnly) {
- NSLog(@"Significant updates on.");
+ DLog(@"Significant updates on.");
[locationManager stopUpdatingLocation];
} else {
- NSLog(@"Starting location updates");
+ DLog(@"Starting location updates");
[locationManager startUpdatingLocation];
}
*/
@@ -131,7 +131,7 @@ - (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation {
-// NSLog(@"Updated to location %@ from %@", newLocation, oldLocation);
+// DLog(@"Updated to location %@ from %@", newLocation, oldLocation);
// horizontalAccuracy is negative when the location is invalid, so completely ignore it in this case
if(newLocation.horizontalAccuracy < 0){
@@ -153,39 +153,39 @@ - (void)locationManager:(CLLocationManager *)manager
// object:self];
NSData *data = [self dataFromLocation:newLocation];
- NSLog(@"[Write] Sending location data: %@", data);
+ DLog(@"[Write] Sending location data: %@", data);
[asyncSocket sendData:data toHost:LQ_WRITE_SOCKET_HOST port:LQ_WRITE_SOCKET_PORT withTimeout:10.0 tag:TAG_DEVICE_ID_SENT];
//Look for ack back
[asyncSocket receiveWithTimeout:30.0 tag:TAG_DEVICE_ID_SENT];
} else {
#if LQ_LOCMAN_DEBUG
- NSLog(@"[Write] Location update (to %@; from %@) rejected", newLocation, oldLocation);
+ DLog(@"[Write] Location update (to %@; from %@) rejected", newLocation, oldLocation);
#endif
}
}
- (void)onUdpSocket:(AsyncUdpSocket *)sock didSendDataWithTag:(long)tag;
{
- NSLog(@"[Write] did send");
+ DLog(@"[Write] did send");
}
- (void)onUdpSocket:(AsyncUdpSocket *)sock didNotSendDataWithTag:(long)tag dueToError:(NSError *)error;
{
- NSLog(@"[Write] did not get ack back");
+ DLog(@"[Write] did not get ack back");
}
- (BOOL)onUdpSocket:(AsyncUdpSocket *)sock didReceiveData:(NSData *)data withTag:(long)tag fromHost:(NSString *)host port:(UInt16)port;
{
//TODO: determine if this is a valid packet
- NSLog(@"[Write] Recieved packet back from server: %@", data);
+ DLog(@"[Write] Recieved packet back from server: %@", data);
if (data.length == sizeof(uint32_t)) {
uint32_t time = OSSwapBigToHostInt32(*(uint32_t *)data.bytes);
- NSLog(@"[Write] Accepted packet with timestamp: %u", time);
+ DLog(@"[Write] Accepted packet with timestamp: %u", time);
return YES;
} else {
- NSLog(@"[Write] packet invalid size: %d", data.length);
+ DLog(@"[Write] packet invalid size: %d", data.length);
return NO;
}
}
@@ -220,11 +220,11 @@ - (NSData *)dataFromLocation:(CLLocation *)location {
memset(update.f.uuid, 0x0, sizeof(update.f.uuid));
-// NSLog(@"Size of packet: %lu", sizeof(LQUpdatePacket));
-// NSLog(@"Offset of command: %lu", offsetof(LQUpdatePacket, f.command));
-// NSLog(@"Offset of date: %lu", offsetof(LQUpdatePacket, f.date));
+// DLog(@"Size of packet: %lu", sizeof(LQUpdatePacket));
+// DLog(@"Offset of command: %lu", offsetof(LQUpdatePacket, f.command));
+// DLog(@"Offset of date: %lu", offsetof(LQUpdatePacket, f.date));
- NSLog(@"[Write] Sending timestamp: %d", update.f.date);
+ DLog(@"[Write] Sending timestamp: %d", update.f.date);
//Swap endianness of each 16 bit int
update.f.date = OSSwapHostToBigInt32(update.f.date);
View
8 Classes/LQClient.m
@@ -195,7 +195,7 @@ - (void)createShareToken {
#pragma mark public methods
- (BOOL)isLoggedIn {
- NSLog(@"Is logged in? %@", self.accessToken);
+ DLog(@"Is logged in? %@", self.accessToken);
return self.accessToken != nil;
}
@@ -238,14 +238,14 @@ - (void)createNewAccountWithEmail:(NSString *)email initials:(NSString *)initial
- (void)joinGame:(NSString *)layer_id withToken:(NSString *)group_token {
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:MapAttackJoinURLFormat, layer_id]];
- NSLog(@"Joining game... %@", url);
+ DLog(@"Joining game... %@", url);
__block ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:self.userInitials forKey:@"initials"];
[request setPostValue:self.emailAddress forKey:@"email"];
[request setPostValue:self.accessToken forKey:@"access_token"];
[request setCompletionBlock:^{
// NSDictionary *responseDict = [self dictionaryFromResponse:[request responseString]];
- NSLog(@"Response from mapattack.org %@", [request responseString]);
+ DLog(@"Response from mapattack.org %@", [request responseString]);
}];
[request startAsynchronous];
}
@@ -253,7 +253,7 @@ - (void)joinGame:(NSString *)layer_id withToken:(NSString *)group_token {
- (void)sendPushToken:(NSString *)token withCallback:(LQHTTPRequestCallback)callback {
// TODO: Send this device token to the Geoloqi API
NSURL *url = [self urlWithPath:@"account/set_apn_token"];
- NSLog(@"Sending push token %@ to %@", token, url);
+ DLog(@"Sending push token %@ to %@", token, url);
__block ASIFormDataRequest *request = (ASIFormDataRequest *)[self userRequestWithURL:url class:@"ASIFormDataRequest"];
[self addDeviceInfoToRequest:request];
[request setPostValue:token forKey:@"token"];
View
16 Classes/MapAttackAppDelegate.m
@@ -87,27 +87,27 @@ - (void)application:(UIApplication *)application didRegisterForRemoteNotificatio
stringByReplacingOccurrencesOfString: @">" withString: @""]
stringByReplacingOccurrencesOfString: @" " withString: @""];
- NSLog(@"Device Token: %@", deviceToken);
+ DLog(@"Device Token: %@", deviceToken);
[[LQClient single] sendPushToken:deviceToken withCallback:^(NSError *error, NSDictionary *response){
- NSLog(@"Sent device token: %@", response);
+ DLog(@"Sent device token: %@", response);
}];
if ([application enabledRemoteNotificationTypes] == UIRemoteNotificationTypeNone) {
- NSLog(@"Notifications are disabled for this application. Not registering.");
+ DLog(@"Notifications are disabled for this application. Not registering.");
return;
}
}
#pragma mark Received push notification
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
- NSLog(@"Received Push! %@", userInfo);
+ DLog(@"Received Push! %@", userInfo);
// Push was received while the app was in the foreground
if(application.applicationState == UIApplicationStateActive) {
NSDictionary *data = [userInfo valueForKeyPath:@"mapattack"];
if(data) {
- NSLog(@"Got some location data! Yeah!!");
+ DLog(@"Got some location data! Yeah!!");
// The data in the push notification is already an NSDictionary, we need to serialize it to JSON
// format to pass to the web view.
@@ -126,7 +126,7 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
-(void)loadGameWithURL:(NSString *)url {
[tabBarController setSelectedIndex:1];
- NSLog(@"MapAttackAppDelegate loadGameWithURL:%@", url);
+ DLog(@"MapAttackAppDelegate loadGameWithURL:%@", url);
[self.mapController loadURL:url];
}
@@ -207,10 +207,10 @@ + (NSData *)UUID {
CFRelease(theUUID);
[[NSUserDefaults standardUserDefaults] setObject:dataUUID forKey:LQUUIDKey];
[[NSUserDefaults standardUserDefaults] synchronize];
- NSLog(@"Generating new UUID: %@", dataUUID);
+ DLog(@"Generating new UUID: %@", dataUUID);
return dataUUID;
} else {
- NSLog(@"Returning existing UUID: %@", [[NSUserDefaults standardUserDefaults] dataForKey:LQUUIDKey]);
+ DLog(@"Returning existing UUID: %@", [[NSUserDefaults standardUserDefaults] dataForKey:LQUUIDKey]);
return [[NSUserDefaults standardUserDefaults] dataForKey:LQUUIDKey];
}
}
View
8 Classes/MapViewController.m
@@ -39,7 +39,7 @@ - (void)loadURL:(NSString *)url {
if(![[LQClient single] isLoggedIn]) {
[lqAppDelegate.tabBarController presentModalViewController:[[AuthView alloc] init] animated:YES];
} else {
- NSLog(@"Loading URL in game view %@", url);
+ DLog(@"Loading URL in game view %@", url);
[webView loadRequest:[NSMutableURLRequest requestWithURL:[NSURL URLWithString:[url stringByAppendingFormat:@"?access_token=%@", [[LQClient single] accessToken]]]]];
}
}
@@ -59,17 +59,17 @@ - (void)viewDidLoad {
}
- (void)mapAttackDataBroadcastReceived:(NSNotification *)notification {
- NSLog(@"got data broadcast");
+ DLog(@"got data broadcast");
// [[CJSONSerializer serializer] serializeDictionary:[notification userInfo]];
- NSLog(@"%@", [NSString stringWithFormat:@"if(typeof LQHandlePushData != \"undefined\") { "
+ DLog(@"%@", [NSString stringWithFormat:@"if(typeof LQHandlePushData != \"undefined\") { "
"LQHandlePushData(%@); }", [[notification userInfo] objectForKey:@"json"]]);
[webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"if(typeof LQHandlePushData != \"undefined\") { "
"LQHandlePushData(%@); }", [[notification userInfo] objectForKey:@"json"]]];
-// NSLog(@"%@", [NSString stringWithFormat:@"if(typeof LQHandlePushData != \"undefined\") { "
+// DLog(@"%@", [NSString stringWithFormat:@"if(typeof LQHandlePushData != \"undefined\") { "
// "LQHandlePushData(%@); }", [[CJSONSerializer serializer] serializeDictionary:[notification userInfo]]]);
// [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"if(typeof LQHandlePushData != \"undefined\") { "
// "LQHandlePushData(%@); }", [[CJSONSerializer serializer] serializeDictionary:[notification userInfo]]]];
View
6 FTLocationSimulator/RegexKitLite.m
@@ -208,7 +208,7 @@
// We need to safely unlock before throwing any of these exceptions.
// @try {} @finally {} significantly slows things down so it's not used.
-#define RKLCHardAbortAssert(c) do { int _c=(c); if(RKL_EXPECTED(!_c, 0L)) { NSLog(@"%@:%ld: Invalid parameter not satisfying: %s\n", [NSString stringWithUTF8String:__FILE__], (long)__LINE__, #c); abort(); } } while(0)
+#define RKLCHardAbortAssert(c) do { int _c=(c); if(RKL_EXPECTED(!_c, 0L)) { DLog(@"%@:%ld: Invalid parameter not satisfying: %s\n", [NSString stringWithUTF8String:__FILE__], (long)__LINE__, #c); abort(); } } while(0)
#define RKLCAssertDictionary(d, ...) rkl_makeAssertDictionary(__PRETTY_FUNCTION__, __FILE__, __LINE__, (d), ##__VA_ARGS__)
#define RKLCDelayedHardAssert(c, e, g) do { id *_e=(e); int _c=(c); if(RKL_EXPECTED(_e == NULL, 0L) || RKL_EXPECTED(*_e != NULL, 0L)) { goto g; } if(RKL_EXPECTED(!_c, 0L)) { *_e = RKLCAssertDictionary(@"Invalid parameter not satisfying: %s", #c); goto g; } } while(0)
@@ -1046,11 +1046,11 @@ static void rkl_cleanup_cacheSpinLockStatus(volatile NSUInteger *rkl_cacheSpinLo
if(RKL_EXPECTED((rkl_cacheSpinLockStatus & RKLUnlockedCacheSpinLock) == 0UL, 0L) && RKL_EXPECTED((rkl_cacheSpinLockStatus & RKLLockedCacheSpinLock) != 0UL, 1L)) {
if(rkl_cacheSpinLock != (OSSpinLock)0) {
- if(didPrintForcedUnlockWarning == 0UL) { didPrintForcedUnlockWarning = 1UL; NSLog(@"[RegexKitLite] Unusual condition detected: Recorded that rkl_cacheSpinLock was locked, but for some reason it was not unlocked. Forcibly unlocking rkl_cacheSpinLock. Set a breakpoint at rkl_debugCacheSpinLock to debug. This warning is only printed once."); }
+ if(didPrintForcedUnlockWarning == 0UL) { didPrintForcedUnlockWarning = 1UL; DLog(@"[RegexKitLite] Unusual condition detected: Recorded that rkl_cacheSpinLock was locked, but for some reason it was not unlocked. Forcibly unlocking rkl_cacheSpinLock. Set a breakpoint at rkl_debugCacheSpinLock to debug. This warning is only printed once."); }
rkl_debugCacheSpinLock(); // Since this is an unusual condition, offer an attempt to catch it before we unlock.
OSSpinLockUnlock(&rkl_cacheSpinLock);
} else {
- if(didPrintNotLockedWarning == 0UL) { didPrintNotLockedWarning = 1UL; NSLog(@"[RegexKitLite] Unusual condition detected: Recorded that rkl_cacheSpinLock was locked, but for some reason it was not unlocked, yet rkl_cacheSpinLock is currently not locked? Set a breakpoint at rkl_debugCacheSpinLock to debug. This warning is only printed once."); }
+ if(didPrintNotLockedWarning == 0UL) { didPrintNotLockedWarning = 1UL; DLog(@"[RegexKitLite] Unusual condition detected: Recorded that rkl_cacheSpinLock was locked, but for some reason it was not unlocked, yet rkl_cacheSpinLock is currently not locked? Set a breakpoint at rkl_debugCacheSpinLock to debug. This warning is only printed once."); }
rkl_debugCacheSpinLock();
}
}
View
4 Reachability/Reachability.m
@@ -149,7 +149,7 @@ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
static void logReachabilityFlags_(const char *name, int line, SCNetworkReachabilityFlags flags) {
- NSLog(@"%s (%d) \n\t%@", name, line, reachabilityFlags_(flags));
+ DLog(@"%s (%d) \n\t%@", name, line, reachabilityFlags_(flags));
} // logReachabilityFlags_()
@@ -171,7 +171,7 @@ static void logNetworkStatus_(const char *name, int line, NetworkStatus status)
break;
}
- NSLog(@"%s (%d) \n\tNetwork Status: %@", name, line, statusString);
+ DLog(@"%s (%d) \n\tNetwork Status: %@", name, line, statusString);
} // logNetworkStatus_()
Please sign in to comment.
Something went wrong with that request. Please try again.