[Logger] Correctly handle message priority

This fixes the flodded sys log.

Fixes: #7453
This commit is contained in:
Hannah von Reth 2019-12-09 09:31:39 +01:00 committed by Hannah von Reth
parent 86c1a66660
commit b1e7c7ab15

View File

@ -39,7 +39,7 @@ static void mirallLogCatcher(QtMsgType type, const QMessageLogContext &ctx, cons
auto logger = Logger::instance();
if (!logger->isNoop()) {
logger->doLog(qFormatLogMessage(type, ctx, message));
} else if(type >= QtCriticalMsg) {
} else if(type == QtCriticalMsg || type == QtFatalMsg) {
std::cerr << qPrintable(qFormatLogMessage(type, ctx, message)) << std::endl;
}