diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-02-02 02:14:14 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-12 20:57:17 +0200 |
commit | cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5 (patch) | |
tree | d8dd6499e29fbf5196b0d5a20f0a0da386b575bb /logic/minecraft/VersionFile.cpp | |
parent | 28a39ef7ac3e3dfe4ea65d02af01d1a18e3d4af6 (diff) | |
download | MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.tar MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.tar.gz MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.tar.lz MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.tar.xz MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.zip |
SCRATCH nuke the overcomplicated logger, use a simple one.
Diffstat (limited to 'logic/minecraft/VersionFile.cpp')
-rw-r--r-- | logic/minecraft/VersionFile.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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 <QJsonDocument> #include <modutils.h> -#include "logger/QsLog.h" +#include <QDebug> #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)"; } } } |