mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Always log output to stderr (for now...)
This commit is contained in:
1 parent
a3a6e3b3b7
commit
e919c13f55
1 file changed
+1
-4
Vendored
+1
-4
@@ -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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user