From 4ba3673dfde92ba70343434ee09307e132dcdade Mon Sep 17 00:00:00 2001 From: Zorg Date: Wed, 18 May 2016 18:52:25 -0400 Subject: [PATCH] Use SULog over NSLog in a couple of places now --- Sparkle/SUSecureCoding.m | 5 +++-- Sparkle/SUUpdater.m | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Sparkle/SUSecureCoding.m b/Sparkle/SUSecureCoding.m index 1c5290a5..5878cf37 100644 --- a/Sparkle/SUSecureCoding.m +++ b/Sparkle/SUSecureCoding.m @@ -7,6 +7,7 @@ // #import "SUSecureCoding.h" +#import "SULog.h" static NSString *SURootObjectArchiveKey = @"SURootObjectArchive"; @@ -21,7 +22,7 @@ NSData * _Nullable SUArchiveRootObjectSecurely(id rootObject) [keyedArchiver finishEncoding]; return [data copy]; } @catch (NSException *exception) { - NSLog(@"Exception while securely archiving object: %@", exception); + SULog(@"Exception while securely archiving object: %@", exception); [keyedArchiver finishEncoding]; return nil; } @@ -37,7 +38,7 @@ id _Nullable SUUnarchiveRootObjectSecurely(NSData *data, Class k [unarchiver finishDecoding]; return rootObject; } @catch (NSException *exception) { - NSLog(@"Exception while securely unarchiving object: %@", exception); + SULog(@"Exception while securely unarchiving object: %@", exception); [unarchiver finishDecoding]; return nil; } diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index ff23b53b..aec2e7e1 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -66,9 +66,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification #ifdef DEBUG + (void)load { - // We're using NSLog instead of SULog here because we don't want to start Sparkle's logger here, - // nor want to write this message to disk - NSLog(@"WARNING: This is running a Debug build of Sparkle; don't use this in production!"); + SULog(@"WARNING: This is running a Debug build of Sparkle; don't use this in production!"); } #endif