From a57bf0c8994e02f5ad607ba95743875a05976d43 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Tue, 13 Aug 2019 12:50:35 +0200 Subject: [PATCH] Print critical and fatal messages to stderr That way we might get a reason why the client crashes (dev setup) --- src/libsync/logger.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 4bb17ac71..3e32da3ee 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -22,6 +22,8 @@ #include #include +#include + #include #ifdef Q_OS_WIN @@ -41,6 +43,8 @@ static void mirallLogCatcher(QtMsgType type, const QMessageLogContext &ctx, cons } } else if (!logger->isNoop()) { logger->doLog(qFormatLogMessage(type, ctx, message)); + } else if(type >= QtCriticalMsg) { + std::cerr << qPrintable(qFormatLogMessage(type, ctx, message)) << std::endl; } #if defined(Q_OS_WIN) -- 2.30.2