-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use DISPATCH_CURRENT_QUEUE_LABEL if available #156
Use DISPATCH_CURRENT_QUEUE_LABEL if available #156
Conversation
Check if DISPATCH_CURRENT_QUEUE_LABEL is defined.
Using DISPATCH_CURRENT_QUEUE_LABEL works only if the SDK is 7.0+ and the app is running under iOS 7.0+. Not equals "ascending" here means that the iOS version should be not less than 7.0. |
else { | ||
queueLabel = dd_str_copy(""); | ||
} | ||
#elif __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe its cleaner to use __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Thanks for the updates! Let's give a good test before releasing 1.6.3. |
Use DISPATCH_CURRENT_QUEUE_LABEL if available
No longer necessary after pull requests CocoaLumberjack#121 and CocoaLumberjack#156, and more importantly, that was ugly.
A better way to get current queue label on iOS 7.
Issue #108, Issue #121.