diff --git a/SUAppcast.m b/SUAppcast.m index 41ef2dff..a22565e3 100644 --- a/SUAppcast.m +++ b/SUAppcast.m @@ -169,7 +169,7 @@ } 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]; diff --git a/SUAppcastItem.m b/SUAppcastItem.m index 116ab157..7d320017 100644 --- a/SUAppcastItem.m +++ b/SUAppcastItem.m @@ -180,7 +180,7 @@ 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]]; } diff --git a/SUInstaller.m b/SUInstaller.m index 69bae86f..64c50318 100644 --- a/SUInstaller.m +++ b/SUInstaller.m @@ -121,6 +121,8 @@ static NSString* sUpdateFolder = nil; { // *** 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]]]; diff --git a/SUPlainInstaller.m b/SUPlainInstaller.m index 182cb520..edff5f7a 100644 --- a/SUPlainInstaller.m +++ b/SUPlainInstaller.m @@ -41,14 +41,12 @@ NSString *SUInstallerErrorKey = @"SUInstallerError"; 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]; diff --git a/SUUpdater.m b/SUUpdater.m index ff9352a7..3452b888 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -223,7 +223,7 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv [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 }