From: Hannah von Reth Date: Tue, 17 Mar 2020 08:08:27 +0000 (+0100) Subject: [Logger] Ensure errors are also printed to an attached console X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~126^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cd96b4a265a0c890046b69f53fdfa3da0570cc44;p=nextcloud-desktop.git [Logger] Ensure errors are also printed to an attached console --- diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index a1ba8b015..fade2084b 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -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; }