mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Print critical and fatal messages to stderr
That way we might get a reason why the client crashes (dev setup)
This commit is contained in:
parent
039d885b76
commit
a57bf0c899
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,8 @@
|
|||
#include <QtGlobal>
|
||||
#include <qmetaobject.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
#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)
|
||||
|
|
Loading…
Reference in a new issue