From b1e7c7ab15fc7015e54bfd59f8bf87dfaaba3cea Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 9 Dec 2019 09:31:39 +0100 Subject: [PATCH] [Logger] Correctly handle message priority This fixes the flodded sys log. Fixes: #7453 --- src/libsync/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 4b4791bd75a..12d835b0db4 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -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; }