diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-11-21 14:59:32 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-11-27 09:58:56 +0000 |
commit | d7545f9bf5dc6fe77dc3f4b284880467c4e2087c (patch) | |
tree | 1a319dc6c5e0df576c76271c12651f3a33724fe0 /src/shared | |
parent | 61e9a7fe164ebdf8ce32df8cb260a8392d90170e (diff) |
Prevent lldb from enabling os_log mirroring to stderr
lldb will normally set OS_ACTIVITY_DT_MODE, so that NSLog is mirrored
to stderr, but this also affects os_log, which we use in the Apple
unified logging backend.
When we detect this situation in the unified logging backend, we disable
Qt's own stderr logging, to avoid duplicate messages.
As the Qt stderr logging is preferable to the stderr logging that os_log
gives, we override lldb's choice, using the same environment variable
opt out that Xcode uses: IDE_DISABLED_OS_ACTIVITY_DT_MODE.
This makes console output in Qt Creator the same, regardless of whether
the user is debugging the app or not.
Change-Id: I5544bde803671258cede918705388c9283885e30
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/shared')
0 files changed, 0 insertions, 0 deletions