Unable to set logging channel levels through NSUserDefaults in Release builds Regressed in bug 233360 Jer Noble 2022-02-24 20:02:47 PST > In bug 227822, we showed that logLevelString() returns the empty string for release builds. This patch undid that change, and returned the previous behavior of effectively disabling all non-error logging in release builds, affecting our ability to collect debug logs with a NSUserDefaults change.
Created attachment 453479 [details] Patch
Lets not do this. We've have regressions in process launch time in the past that were due to reading NSDefaults during process launch.
Comment on attachment 453479 [details] Patch Moving from r+ to r-; reading NSDefaults during process launch has caused process launch time regressions in the past. See bug #185951 for context. With the change from r290654 in place, we should only be reading NSDefaults once during app launch, then never again, so this change should be unnecessary.
<rdar://problem/89954192>