mirror of
https://github.com/stenzek/duckstation.git
synced 2026-05-21 15:36:55 +00:00
Qt: Don't include calling function name in Qt logs
It's redundant.
This commit is contained in:
@@ -296,22 +296,22 @@ void QtHost::MessageOutputHandler(QtMsgType type, const QMessageLogContext& cont
|
|||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case QtDebugMsg:
|
case QtDebugMsg:
|
||||||
DEBUG_LOG("qDebug({}): {}", function, smsg);
|
GENERIC_LOG(Log::Channel::Host, Log::Level::Debug, Log::Color::Default, "qDebug({}): {}", function, smsg);
|
||||||
break;
|
break;
|
||||||
case QtInfoMsg:
|
case QtInfoMsg:
|
||||||
INFO_LOG("qInfo({}): {}", function, smsg);
|
GENERIC_LOG(Log::Channel::Host, Log::Level::Info, Log::Color::Default, "qInfo({}): {}", function, smsg);
|
||||||
break;
|
break;
|
||||||
case QtWarningMsg:
|
case QtWarningMsg:
|
||||||
WARNING_LOG("qWarning({}): {}", function, smsg);
|
GENERIC_LOG(Log::Channel::Host, Log::Level::Warning, Log::Color::Default, "qWarning({}): {}", function, smsg);
|
||||||
break;
|
break;
|
||||||
case QtCriticalMsg:
|
case QtCriticalMsg:
|
||||||
ERROR_LOG("qCritical({}): {}", function, smsg);
|
GENERIC_LOG(Log::Channel::Host, Log::Level::Error, Log::Color::Default, "qCritical({}): {}", function, smsg);
|
||||||
break;
|
break;
|
||||||
case QtFatalMsg:
|
case QtFatalMsg:
|
||||||
ERROR_LOG("qFatal({}): {}", function, smsg);
|
GENERIC_LOG(Log::Channel::Host, Log::Level::Error, Log::Color::Default, "qFatal({}): {}", function, smsg);
|
||||||
Y_OnPanicReached(smsg.c_str(), function, context.file ? context.file : "<unknown>", context.line);
|
Y_OnPanicReached(smsg.c_str(), function, context.file ? context.file : "<unknown>", context.line);
|
||||||
default:
|
default:
|
||||||
ERROR_LOG("<unknown>({}): {}", function, smsg);
|
GENERIC_LOG(Log::Channel::Host, Log::Level::Error, Log::Color::Default, "<unknown>({}): {}", function, smsg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user