From cd96b4a265a0c890046b69f53fdfa3da0570cc44 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Tue, 17 Mar 2020 09:08:27 +0100 Subject: [PATCH] [Logger] Ensure errors are also printed to an attached console --- src/libsync/logger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }