Always log output to stderr (for now...)

This commit is contained in:
Zorg committed 2016-06-27 00:02:37 -04:00
1 parent a3a6e3b3b7
commit e919c13f55
1 file changed
+1 -4
+1 -4
View File
@@ -25,11 +25,8 @@ void SULog(NSString *format, ...)
dispatch_once(&onceToken, ^{
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *displayName = [[NSFileManager defaultManager] displayNameAtPath:mainBundle.bundlePath];
#ifdef DEBUG
#warning Can there be a better approach than always outputting to stderr?
uint32_t options = ASL_OPT_NO_DELAY | ASL_OPT_STDERR;
#else
uint32_t options = ASL_OPT_NO_DELAY;
#endif
client = asl_open([displayName stringByAppendingString:@" [Sparkle]"].UTF8String, mainBundle.bundleIdentifier.UTF8String, options);
queue = dispatch_queue_create(NULL, DISPATCH_QUEUE_SERIAL);
});