From: Hannah von Reth Date: Mon, 9 Dec 2019 08:31:39 +0000 (+0100) Subject: [Logger] Correctly handle message priority X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~126^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=669e42edd14e1a4c71268993b86473f6e4251e41;p=nextcloud-desktop.git [Logger] Correctly handle message priority This fixes the flodded sys log. Fixes: #7453 --- diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 3e32da3ee..4faab8bd2 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -43,7 +43,7 @@ static void mirallLogCatcher(QtMsgType type, const QMessageLogContext &ctx, cons } } else 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; }