From cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 2 Feb 2015 02:14:14 +0100 Subject: SCRATCH nuke the overcomplicated logger, use a simple one. --- logic/minecraft/VersionFile.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'logic/minecraft/VersionFile.cpp') diff --git a/logic/minecraft/VersionFile.cpp b/logic/minecraft/VersionFile.cpp index f5856936..275be12e 100644 --- a/logic/minecraft/VersionFile.cpp +++ b/logic/minecraft/VersionFile.cpp @@ -2,7 +2,7 @@ #include #include -#include "logger/QsLog.h" +#include #include "logic/minecraft/VersionFile.h" #include "logic/minecraft/OneSixLibrary.h" @@ -57,7 +57,7 @@ VersionFilePtr VersionFile::fromJson(const QJsonDocument &doc, const QString &fi else { // FIXME: evaluate if we don't want to throw exceptions here instead - QLOG_ERROR() << filename << "doesn't contain an order field"; + qCritical() << filename << "doesn't contain an order field"; } } @@ -364,7 +364,7 @@ void VersionFile::applyTo(MinecraftProfile *version) { case RawLibrary::Apply: { - // QLOG_INFO() << "Applying lib " << lib->name; + // qDebug() << "Applying lib " << lib->name; int index = findLibraryByName(version->libraries, addedLibrary->rawName()); if (index >= 0) { @@ -396,7 +396,7 @@ void VersionFile::applyTo(MinecraftProfile *version) } else { - QLOG_WARN() << "Couldn't find" << addedLibrary->rawName() << "(skipping)"; + qWarning() << "Couldn't find" << addedLibrary->rawName() << "(skipping)"; } break; } @@ -476,7 +476,7 @@ void VersionFile::applyTo(MinecraftProfile *version) { toReplace = addedLibrary->insertData; } - // QLOG_INFO() << "Replacing lib " << toReplace << " with " << lib->name; + // qDebug() << "Replacing lib " << toReplace << " with " << lib->name; int index = findLibraryByName(version->libraries, toReplace); if (index >= 0) { @@ -484,7 +484,7 @@ void VersionFile::applyTo(MinecraftProfile *version) } else { - QLOG_WARN() << "Couldn't find" << toReplace << "(skipping)"; + qWarning() << "Couldn't find" << toReplace << "(skipping)"; } break; } @@ -495,12 +495,12 @@ void VersionFile::applyTo(MinecraftProfile *version) int index = findLibraryByName(version->libraries, lib); if (index >= 0) { - // QLOG_INFO() << "Removing lib " << lib; + // qDebug() << "Removing lib " << lib; version->libraries.removeAt(index); } else { - QLOG_WARN() << "Couldn't find" << lib << "(skipping)"; + qWarning() << "Couldn't find" << lib << "(skipping)"; } } } -- cgit v1.2.3