Skip to content

Commit

Permalink
[Logger] Correctly handle message priority
Browse files Browse the repository at this point in the history
This fixes the flodded sys log.

Fixes: #7453
  • Loading branch information
TheOneRing committed Dec 9, 2019
1 parent 86c1a66 commit b1e7c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void mirallLogCatcher(QtMsgType type, const QMessageLogContext &ctx, cons
auto logger = Logger::instance();
if (!logger->isNoop()) {
logger->doLog(qFormatLogMessage(type, ctx, message));
} else if(type >= QtCriticalMsg) {
} else if(type == QtCriticalMsg || type == QtFatalMsg) {
std::cerr << qPrintable(qFormatLogMessage(type, ctx, message)) << std::endl;
}

Expand Down

0 comments on commit b1e7c7a

Please sign in to comment.