mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03:00
[Logger] Ensure errors are also printed to an attached console
This commit is contained in:
parent
44fc881ced
commit
cd96b4a265
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ static void mirallLogCatcher(QtMsgType type, const QMessageLogContext &ctx, cons
|
|||
}
|
||||
} else if (!logger->isNoop()) {
|
||||
logger->doLog(qFormatLogMessage(type, ctx, message));
|
||||
} else if(type == QtCriticalMsg || type == QtFatalMsg) {
|
||||
}
|
||||
if(type == QtCriticalMsg || type == QtFatalMsg) {
|
||||
std::cerr << qPrintable(qFormatLogMessage(type, ctx, message)) << std::endl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue