From: Hannah von Reth Date: Tue, 13 Aug 2019 10:50:35 +0000 (+0200) Subject: Print critical and fatal messages to stderr X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~126^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a57bf0c8994e02f5ad607ba95743875a05976d43;p=nextcloud-desktop.git Print critical and fatal messages to stderr That way we might get a reason why the client crashes (dev setup) --- 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)