QLogging: Add missing newline in win_message_handler()
Neither win_outputDebugString_helper() nor OutputDebugString() add a newline at the end of the message, so one needs to be added before being passed to the output handler. A newline was previously present but removed when deduplicating calls to qFormatLogMessage(). Fixes: QTBUG-121947 Pick-to: 6.7 Change-Id: I9f1c1d8726e4234f24999f47c52340140d5a4614 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
24224f1fe4
commit
c05f987fcd
@ -1861,7 +1861,7 @@ static bool win_message_handler(QtMsgType, const QMessageLogContext &,
|
||||
if (shouldLogToStderr())
|
||||
return false; // Leave logging up to stderr handler
|
||||
|
||||
win_outputDebugString_helper(formattedMessage);
|
||||
win_outputDebugString_helper(formattedMessage + u'\n');
|
||||
|
||||
return true; // Prevent further output to stderr
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user