Use SULog over NSLog in a couple of places now

This commit is contained in:
Zorg committed 2016-05-18 18:52:25 -04:00
1 parent 72d63f3992
commit 4ba3673dfd
2 files changed
+4 -5

No files matched your search

+3 -2
View File
@@ -7,6 +7,7 @@
//
#import "SUSecureCoding.h"
#import "SULog.h"
static NSString *SURootObjectArchiveKey = @"SURootObjectArchive";
@@ -21,7 +22,7 @@ NSData * _Nullable SUArchiveRootObjectSecurely(id<NSSecureCoding> 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<NSSecureCoding> _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;
}
+1 -3
View File
@@ -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