mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
[Logger] Correctly handle message priority
This fixes the flodded sys log. Fixes: #7453
This commit is contained in:
parent
86c1a66660
commit
b1e7c7ab15
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user