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 Change-Id: I9f1c1d8726e4234f24999f47c52340140d5a4614 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit c05f987fcd36bf2f194f0dedb37f4eea7a68e4f5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
cd59980f72
commit
fdd4d5df69
@ -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