Unconditionally log to stderr, regardless of qt_logging_to_console()
Regression after 114f795221
, which incorrectly assumed that checking
qt_logging_to_console() was a safe behavior change to include.
Unfortunately that broke debug output in Qt Creator, as Creator doesn't
seem to run applications with a controlling TTY unless it itself was
started with one, and doesn't set QT_LOGGING_TO_CONSOLE to force log
console output either.
Task-number: QTBUG-66153
Change-Id: I775cb06953122a3f20c16bfe21e19de2d1aa5b52
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
64a3bba7b8
commit
3d02e75c07
@ -1664,7 +1664,7 @@ static void qDefaultMessageHandler(QtMsgType type, const QMessageLogContext &con
|
|||||||
handledStderr |= android_default_message_handler(type, context, message);
|
handledStderr |= android_default_message_handler(type, context, message);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (handledStderr || !qt_logging_to_console())
|
if (handledStderr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QString formattedMessage = qFormatLogMessage(type, context, message);
|
QString formattedMessage = qFormatLogMessage(type, context, message);
|
||||||
|
Loading…
Reference in New Issue
Block a user