mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Use SULog over NSLog in a couple of places now
This commit is contained in:
1 parent
72d63f3992
commit
4ba3673dfd
2 files changed
+4
-5
No files matched your search
Vendored
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+1
-3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user