diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-08-23 10:52:58 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-10-24 04:04:19 -0700 |
| commit | e85c64bb6d6bd56de9543273d9e92aedca68ca35 (patch) | |
| tree | e713b2faeaacbcd5f91772d1b1db90467b85149a /src/corelib/global/qlogging.cpp | |
| parent | d614067ea0828390644abea2ae046b791e5ba3a8 (diff) | |
QLogging: use stderr_message_handler() if we fail to grab the handler
Instead of duplicating its stderr handling.
Change-Id: Ifa1111900d6945ea8e05fffd177e149dfa9afff9
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
| -rw-r--r-- | src/corelib/global/qlogging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 7f3ec9a97f3..8a7ea6a4bd5 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1995,7 +1995,7 @@ static void qt_message_print(QtMsgType msgType, const QMessageLogContext &contex auto msgHandler = messageHandler.loadAcquire(); (msgHandler ? msgHandler : qDefaultMessageHandler)(msgType, context, message); } else { - fprintf(stderr, "%s\n", message.toLocal8Bit().constData()); + stderr_message_handler(msgType, context, message.toLocal8Bit()); } } |
