Skip to content

Commit

Permalink
NSLog things
Browse files Browse the repository at this point in the history
tonymillion committed Jan 2, 2012
1 parent 1cf8f0f commit 6c5d380
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Reachability.m
Original file line number Diff line number Diff line change
@@ -177,7 +177,7 @@ -(BOOL)startNotifier
if (!SCNetworkReachabilitySetCallback(self.reachabilityRef, TMReachabilityCallback, &context))
{
#ifdef DEBUG
NSLog(@"SCNetworkReachabilitySetCallback() failed: %s\n", SCErrorString(SCError()));
NSLog(@"SCNetworkReachabilitySetCallback() failed: %s", SCErrorString(SCError()));
#endif
return NO;
}
@@ -420,7 +420,7 @@ -(void)reachabilityChanged:(SCNetworkReachabilityFlags)flags
if(self.reachableBlock)
{
#ifdef DEBUG
NSLog(@"Reachability: blocks are not called on the main thread.\n Use dispatch_async(dispatch_get_main_queue(), ^{}] to update your UI!");
NSLog(@"Reachability: blocks are not called on the main thread.\n Use dispatch_async(dispatch_get_main_queue(), ^{}); to update your UI!");
#endif
self.reachableBlock(self);
}
@@ -430,7 +430,7 @@ -(void)reachabilityChanged:(SCNetworkReachabilityFlags)flags
if(self.unreachableBlock)
{
#ifdef DEBUG
NSLog(@"Reachability: blocks are not called on the main thread.\n Use dispatch_async(dispatch_get_main_queue(), ^{}] to update your UI!");
NSLog(@"Reachability: blocks are not called on the main thread.\n Use dispatch_async(dispatch_get_main_queue(), ^{}); to update your UI!");
#endif
self.unreachableBlock(self);
}

0 comments on commit 6c5d380

Please sign in to comment.