projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
039d885
)
Print critical and fatal messages to stderr
author
Hannah von Reth
<hannah.vonreth@owncloud.com>
Tue, 13 Aug 2019 10:50:35 +0000
(12:50 +0200)
committer
Kevin Ottens
<kevin.ottens@nextcloud.com>
Wed, 1 Jul 2020 13:13:20 +0000
(15:13 +0200)
That way we might get a reason why the client crashes (dev setup)
src/libsync/logger.cpp
patch
|
blob
|
history
diff --git
a/src/libsync/logger.cpp
b/src/libsync/logger.cpp
index 4bb17ac71af19cb36f6f9589b7339419595cf778..3e32da3ee9348b97763e710b75c0924b9434eaa9 100644
(file)
--- a/
src/libsync/logger.cpp
+++ b/
src/libsync/logger.cpp
@@
-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)