Hi there,
Recently we have been seeing thread_policy_set(1) returned 46
flooding our log output. We tracked down that the flood of this is coming from a separate library whom we've contacted.
They mentioned that this is a Apple internal message that comes up in the library's deadlock detector. The proposed solution was to use OS_ACTIVITY_MODE
env var to hide the logs as suggested from the post on StackOverflow..
I tried all suggestions from that StackOverflow post, which were able to hide other system logs generated from Apple but it specifically did not hide the thread_policy_set(1) returned 46
What I am hoping to understand is:
- Why does this message come up? I see that the documentation for this on Apple's docs is very limited.
- Is this message's visibility controllable via a separate variable in project settings outside of modifying settings for all logs?
- As a last resort, how can I disable only this log message?
Thank you!