Qt: Don't include calling function name in Qt logs

It's redundant.
This commit is contained in:
Stenzek
2025-11-16 00:54:49 +10:00
parent 085c02d495
commit f5bd7c1b01

View File

@@ -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;
} }
} }