mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
Reduce startup logging verbosity
This commit is contained in:
parent
db8b47e7f6
commit
f3900f2966
@ -339,7 +339,7 @@ void MultiMC::initLogger()
|
||||
QsLogging::Logger &logger = QsLogging::Logger::instance();
|
||||
logger.setLoggingLevel(QsLogging::TraceLevel);
|
||||
m_fileDestination = QsLogging::DestinationFactory::MakeFileDestination(logBase.arg(0));
|
||||
m_debugDestination = QsLogging::DestinationFactory::MakeQDebugDestination();
|
||||
m_debugDestination = QsLogging::DestinationFactory::MakeDebugOutputDestination();
|
||||
logger.addDestination(m_fileDestination.get());
|
||||
logger.addDestination(m_debugDestination.get());
|
||||
// log all the things
|
||||
|
@ -107,6 +107,7 @@ void MinecraftVersionList::loadCachedList()
|
||||
|
||||
void MinecraftVersionList::loadBuiltinList()
|
||||
{
|
||||
QLOG_INFO() << "Loading builtin version list.";
|
||||
// grab the version list data from internal resources.
|
||||
QResource versionList(":/versions/minecraft.json");
|
||||
QFile filez(versionList.absoluteFilePath());
|
||||
@ -173,6 +174,7 @@ void MinecraftVersionList::loadBuiltinList()
|
||||
|
||||
void MinecraftVersionList::loadMojangList(QByteArray data, VersionSource source)
|
||||
{
|
||||
QLOG_INFO() << "Loading" << ((source == Remote) ? "remote" : "local") << "version list.";
|
||||
QJsonParseError jsonError;
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromJson(data, &jsonError);
|
||||
|
||||
@ -182,7 +184,6 @@ void MinecraftVersionList::loadMojangList(QByteArray data, VersionSource source)
|
||||
tr("Error parsing version list JSON: %1").arg(jsonError.errorString()));
|
||||
}
|
||||
|
||||
QLOG_INFO() << ((source == Remote) ? "Remote version list: " : "Local version list:") << data;
|
||||
if (!jsonDoc.isObject())
|
||||
{
|
||||
throw ListLoadError(tr("Error parsing version list JSON: jsonDoc is not an object"));
|
||||
@ -257,7 +258,6 @@ void MinecraftVersionList::loadMojangList(QByteArray data, VersionSource source)
|
||||
|
||||
if (mcVersion->m_releaseTime < g_VersionFilterData.legacyCutoffDate)
|
||||
{
|
||||
QLOG_ERROR() << "Ignoring Mojang version: " << versionID;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user