Skip to content

Commit

Permalink
Merge pull request #5045 from tuffnatty/fix/debug-console-info-as-fatal
Browse files Browse the repository at this point in the history
Fix INFO messages displayed as FATAL in debug console
  • Loading branch information
pawelsalawa authored Aug 18, 2024
2 parents 3036e82 + 4f28631 commit abb86b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SQLiteStudio3/guiSQLiteStudio/uidebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ void uiMessageHandler(QtMsgType type, const QMessageLogContext &context, const Q
static const QString wrnMsg = QStringLiteral("[%1] WARNING: %2");
static const QString criMsg = QStringLiteral("[%1] CRITICAL: %2");
static const QString fatMsg = QStringLiteral("[%1] FATAL: %2");
static const QString infMsg = QStringLiteral("[%1] INFO: %2");

QString time = QTime::currentTime().toString("HH:mm:ss.zzz");
switch (type) {
Expand All @@ -42,7 +43,7 @@ void uiMessageHandler(QtMsgType type, const QMessageLogContext &context, const Q
abort();
#if QT_VERSION >= 0x050500
case QtInfoMsg:
msgHandlerThreadProxy->debug(fatMsg.arg(time, msg));
msgHandlerThreadProxy->debug(infMsg.arg(time, msg));
break;
#endif
}
Expand Down

0 comments on commit abb86b0

Please sign in to comment.