Move debug warning up in initializer because it spawns really often..

This commit is contained in:
Zorg committed 2016-04-03 20:04:56 -04:00
1 parent 6dedd8309f
commit 44a61b830e
1 file changed
+4 -4
+4 -4
View File
@@ -84,6 +84,10 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
// This runs the permission prompt if needed, but never before the app has finished launching because the runloop may not have ran before that
// We will also take precaussions if a developer instantiates an updater themselves where the application may not be completely finished launching yet
[self performSelector:@selector(startUpdateCycle) withObject:nil afterDelay:1];
#ifdef DEBUG
SULog(@"WARNING: This is running a Debug build of Sparkle; don't use this in production!");
#endif
}
return self;
@@ -126,10 +130,6 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
SULog(@"WARNING: Serving updates over HTTP may be blocked in OS X 10.11. Please change the feed URL (%@) to use HTTPS. For more information:\nhttp://sparkle-project.org/documentation/app-transport-security/", feedURL);
}
#endif
#ifdef DEBUG
SULog(@"WARNING: This is running a Debug build of Sparkle; don't use this in production!");
#endif
}
- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [self.host bundlePath]]; }