[Logger] Ensure errors are also printed to an attached console

This commit is contained in:
Hannah von Reth 2020-03-17 09:08:27 +01:00 committed by Kevin Ottens
parent 44fc881ced
commit cd96b4a265

View file

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