mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-30 05:28:50 +00:00
Move Sparkle debug warning into +load
Also use NSLog here instead of SULog because we don't want to start the logger early on
This commit is contained in:
1 parent
e767f6a4c6
commit
39bc068b89
1 file changed
+9
-4
Vendored
+9
-4
@@ -62,6 +62,15 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
|
||||
@synthesize startedUpdater = _startedUpdater;
|
||||
@synthesize preStartedScheduledUpdateBlock = _preStartedScheduledUpdateBlock;
|
||||
|
||||
#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!");
|
||||
}
|
||||
#endif
|
||||
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)bundle userDriver:(id <SUUserDriver>)userDriver delegate:(id <SUUpdaterDelegate>)theDelegate
|
||||
{
|
||||
self = [super init];
|
||||
@@ -77,10 +86,6 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
|
||||
_userDriver = userDriver;
|
||||
|
||||
_delegate = theDelegate;
|
||||
|
||||
#ifdef DEBUG
|
||||
SULog(@"WARNING: This is running a Debug build of Sparkle; don't use this in production!");
|
||||
#endif
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
Reference in new issue
Block a user