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:
a57bf0c
)
[Logger] Correctly handle message priority
author
Hannah von Reth
<hannah.vonreth@owncloud.com>
Mon, 9 Dec 2019 08:31:39 +0000
(09:31 +0100)
committer
Kevin Ottens
<kevin.ottens@nextcloud.com>
Wed, 1 Jul 2020 13:13:20 +0000
(15:13 +0200)
This fixes the flodded sys log.
Fixes: #7453
src/libsync/logger.cpp
patch
|
blob
|
history
diff --git
a/src/libsync/logger.cpp
b/src/libsync/logger.cpp
index 3e32da3ee9348b97763e710b75c0924b9434eaa9..4faab8bd20736b14f2cc756893b1fc6e73ef07cf 100644
(file)
--- a/
src/libsync/logger.cpp
+++ b/
src/libsync/logger.cpp
@@
-43,7
+43,7
@@
static void mirallLogCatcher(QtMsgType type, const QMessageLogContext &ctx, cons
}
} else if (!logger->isNoop()) {
logger->doLog(qFormatLogMessage(type, ctx, message));
- } else if(type
>= QtCritic
alMsg) {
+ } else if(type
== QtCriticalMsg || type == QtFat
alMsg) {
std::cerr << qPrintable(qFormatLogMessage(type, ctx, message)) << std::endl;
}