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/status | |
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/status')
-rw-r--r-- | logic/status/StatusChecker.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/logic/status/StatusChecker.cpp b/logic/status/StatusChecker.cpp index 287d2609..0e60db40 100644 --- a/logic/status/StatusChecker.cpp +++ b/logic/status/StatusChecker.cpp @@ -20,7 +20,7 @@ #include <QByteArray> #include <QDomDocument> -#include <logger/QsLog.h> +#include <QDebug> StatusChecker::StatusChecker() { @@ -37,11 +37,11 @@ void StatusChecker::reloadStatus() { if (isLoadingStatus()) { - // QLOG_INFO() << "Ignored request to reload status. Currently reloading already."; + // qDebug() << "Ignored request to reload status. Currently reloading already."; return; } - // QLOG_INFO() << "Reloading status."; + // qDebug() << "Reloading status."; NetJob* job = new NetJob("Status JSON"); job->addNetAction(ByteArrayDownload::make(URLConstants::MOJANG_STATUS_URL)); @@ -54,7 +54,7 @@ void StatusChecker::reloadStatus() void StatusChecker::statusDownloadFinished() { - QLOG_DEBUG() << "Finished loading status JSON."; + qDebug() << "Finished loading status JSON."; m_statusEntries.clear(); QByteArray data; { @@ -92,7 +92,7 @@ void StatusChecker::statusDownloadFinished() if(value.type() == QVariant::Type::String) { m_statusEntries.insert(key, value.toString()); - //QLOG_DEBUG() << "Status JSON object: " << key << m_statusEntries[key]; + //qDebug() << "Status JSON object: " << key << m_statusEntries[key]; } else { @@ -134,7 +134,7 @@ void StatusChecker::succeed() m_prevEntries = m_statusEntries; } m_lastLoadError = ""; - QLOG_DEBUG() << "Status loading succeeded."; + qDebug() << "Status loading succeeded."; m_statusNetJob.reset(); emit statusLoading(false); } @@ -147,7 +147,7 @@ void StatusChecker::fail(const QString& errorMsg) m_prevEntries = m_statusEntries; } m_lastLoadError = errorMsg; - QLOG_DEBUG() << "Failed to load status:" << errorMsg; + qDebug() << "Failed to load status:" << errorMsg; m_statusNetJob.reset(); emit statusLoading(false); } |