mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Add some comments to SULog.h/m
This commit is contained in:
1 parent
31cfbbccd9
commit
36fd5a8bbd
2 files changed
+2
-1
No files matched your search
Vendored
+1
-1
@@ -19,7 +19,7 @@ typedef NS_ENUM(uint8_t, SULogLevel) {
|
||||
// Logging utlity function that is thread-safe
|
||||
// On 10.12 or later this uses os_log
|
||||
// Otherwise on older systems this uses ASL
|
||||
// For debugging command line tools, you may have to use Console.app to view log messages
|
||||
// For debugging command line tools, you may have to use Console.app or log(1) to view log messages
|
||||
// Try to keep log messages as compact/short as possible
|
||||
void SULog(SULogLevel level, NSString *format, ...) NS_FORMAT_FUNCTION(2, 3);
|
||||
|
||||
|
||||
Vendored
+1
@@ -40,6 +40,7 @@ void SULog(SULogLevel level, NSString *format, ...)
|
||||
const char *subsystem = [[bundleIdentifier stringByAppendingString:@".Sparkle"] UTF8String];
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wpartial-availability"
|
||||
// This creates a thread-safe object
|
||||
logger = os_log_create(subsystem, "Sparkle");
|
||||
#pragma clang diagnostic pop
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user