Reduce startup logging verbosity

This commit is contained in:
Petr Mrázek 2014-05-12 23:27:50 +02:00
parent db8b47e7f6
commit f3900f2966
2 changed files with 3 additions and 3 deletions

View File

@ -339,7 +339,7 @@ void MultiMC::initLogger()
QsLogging::Logger &logger = QsLogging::Logger::instance(); QsLogging::Logger &logger = QsLogging::Logger::instance();
logger.setLoggingLevel(QsLogging::TraceLevel); logger.setLoggingLevel(QsLogging::TraceLevel);
m_fileDestination = QsLogging::DestinationFactory::MakeFileDestination(logBase.arg(0)); 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_fileDestination.get());
logger.addDestination(m_debugDestination.get()); logger.addDestination(m_debugDestination.get());
// log all the things // log all the things

View File

@ -107,6 +107,7 @@ void MinecraftVersionList::loadCachedList()
void MinecraftVersionList::loadBuiltinList() void MinecraftVersionList::loadBuiltinList()
{ {
QLOG_INFO() << "Loading builtin version list.";
// grab the version list data from internal resources. // grab the version list data from internal resources.
QResource versionList(":/versions/minecraft.json"); QResource versionList(":/versions/minecraft.json");
QFile filez(versionList.absoluteFilePath()); QFile filez(versionList.absoluteFilePath());
@ -173,6 +174,7 @@ void MinecraftVersionList::loadBuiltinList()
void MinecraftVersionList::loadMojangList(QByteArray data, VersionSource source) void MinecraftVersionList::loadMojangList(QByteArray data, VersionSource source)
{ {
QLOG_INFO() << "Loading" << ((source == Remote) ? "remote" : "local") << "version list.";
QJsonParseError jsonError; QJsonParseError jsonError;
QJsonDocument jsonDoc = QJsonDocument::fromJson(data, &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())); tr("Error parsing version list JSON: %1").arg(jsonError.errorString()));
} }
QLOG_INFO() << ((source == Remote) ? "Remote version list: " : "Local version list:") << data;
if (!jsonDoc.isObject()) if (!jsonDoc.isObject())
{ {
throw ListLoadError(tr("Error parsing version list JSON: jsonDoc is not an object")); 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) if (mcVersion->m_releaseTime < g_VersionFilterData.legacyCutoffDate)
{ {
QLOG_ERROR() << "Ignoring Mojang version: " << versionID;
continue; continue;
} }