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/status/StatusChecker.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'logic/status') 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 #include -#include +#include 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); } -- cgit v1.2.3