Skip to content

Commit

Permalink
Do not let default-category messages into the aplication log
Browse files Browse the repository at this point in the history
  • Loading branch information
gsurkov committed Dec 4, 2021
1 parent 146a221 commit fd567d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ void Logger::messageOutput(QtMsgType type, const QMessageLogContext &context, co
// TODO: Distinguish between severity levels in the log file?
switch(type) {
case QtFatalMsg:
break;
case QtDebugMsg:
break;
case QtCriticalMsg:
break;
case QtInfoMsg:
case QtWarningMsg:
emit globalLogger->messageArrived(text);
if(strcmp(context.category, "default")) {
emit globalLogger->messageArrived(text);
}
}

if(globalLogger->m_logFile->isOpen()) {
Expand Down

0 comments on commit fd567d4

Please sign in to comment.