From 44a61b830eaa29d3f778249df4dee8a1ccda3058 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 3 Apr 2016 20:04:56 -0400 Subject: [PATCH] Move debug warning up in initializer because it spawns really often.. --- Sparkle/SUUpdater.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 2160b0cb..3c355a90 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -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]]; }