Permalink
Browse files

Changed a few NSLogs() to SULogs().

  • Loading branch information...
uliwitness committed Dec 7, 2009
1 parent 9788c68 commit 4f8d745305ad3b152e21bd52c2a359b5bffc7ae2
Showing with 5 additions and 5 deletions.
  1. +1 −1 SUAppcast.m
  2. +1 −1 SUAppcastItem.m
  3. +2 −0 SUInstaller.m
  4. +0 −2 SUPlainInstaller.m
  5. +1 −1 SUUpdater.m
View
@@ -169,7 +169,7 @@ - (void)downloadDidFinish:(NSURLDownload *)download
}
else
{
- NSLog(@"Sparkle Updater: Failed to parse appcast item: %@.\nAppcast dictionary was: %@", errString, dict);
+ SULog(@"Sparkle Updater: Failed to parse appcast item: %@.\nAppcast dictionary was: %@", errString, dict);
}
[nodesDict removeAllObjects];
[dict removeAllObjects];
View
@@ -180,7 +180,7 @@ - (void)setInfoURL:(NSURL *)aFileURL // UK 2007-08-31 (whole method)
if( theInfoURL )
{
if( ![theInfoURL isKindOfClass: [NSString class]] )
- NSLog(@"SUAppcastItem -initWithDictionary: Info URL is not of valid type.");
+ SULog(@"SUAppcastItem -initWithDictionary: Info URL is not of valid type.");
else
[self setInfoURL:[NSURL URLWithString:theInfoURL]];
}
View
@@ -121,6 +121,8 @@ + (void)_mdimportHost:(SUHost *)host
{
// *** GETS CALLED ON NON-MAIN THREAD!
+ SULog( @"mdimporting" );
+
NSTask *mdimport = [[[NSTask alloc] init] autorelease];
[mdimport setLaunchPath:@"/usr/bin/mdimport"];
[mdimport setArguments:[NSArray arrayWithObject:[host installationPath]]];
View
@@ -41,14 +41,12 @@ + (void)_performInstallationWithInfo:(NSDictionary *)info
NSString * installationPath = [[info objectForKey:SUInstallerHostKey] installationPath];
BOOL result = [self copyPathWithAuthentication:[info objectForKey:SUInstallerPathKey] overPath: installationPath temporaryName:[info objectForKey:SUInstallerTempNameKey] error:&error];
- //NSLog( @"oldPath = %@ installationPath = %@", oldPath, installationPath );
if( result )
{
BOOL haveOld = [[NSFileManager defaultManager] fileExistsAtPath: oldPath];
BOOL differentFromNew = ![oldPath isEqualToString: installationPath];
if( haveOld && differentFromNew )
[self _movePathToTrash: oldPath]; // On success, trash old copy if there's still one due to renaming.
- //NSLog( @"haveOld = %s differentFromNew = %s", (haveOld? "YES":"NO"), (differentFromNew? "YES":"NO") );
}
NSMutableDictionary *mutableInfo = [[info mutableCopy] autorelease];
[mutableInfo setObject:[NSNumber numberWithBool:result] forKey:SUInstallerResultKey];
View
@@ -223,7 +223,7 @@ -(void) checkForUpdatesInBgReachabilityCheckWithDriver: (SUUpdateDriver*)inDrive
[pool release];
NS_HANDLER
- NSLog(@"UNCAUGHT EXCEPTION IN UPDATE CHECK TIMER: %@",[localException reason]);
+ SULog(@"UNCAUGHT EXCEPTION IN UPDATE CHECK TIMER: %@",[localException reason]);
// Don't propagate the exception beyond here. In Carbon apps that would trash the stack.
NS_ENDHANDLER
}

0 comments on commit 4f8d745

Please sign in to comment.