summaryrefslogtreecommitdiffstats
path: root/logic/news
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-02-02 02:14:14 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-12 20:57:17 +0200
commitcd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5 (patch)
treed8dd6499e29fbf5196b0d5a20f0a0da386b575bb /logic/news
parent28a39ef7ac3e3dfe4ea65d02af01d1a18e3d4af6 (diff)
downloadMultiMC-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/news')
-rw-r--r--logic/news/NewsChecker.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/logic/news/NewsChecker.cpp b/logic/news/NewsChecker.cpp
index 1b4ebb92..39796e36 100644
--- a/logic/news/NewsChecker.cpp
+++ b/logic/news/NewsChecker.cpp
@@ -18,7 +18,7 @@
#include <QByteArray>
#include <QDomDocument>
-#include <logger/QsLog.h>
+#include <QDebug>
NewsChecker::NewsChecker(const QString& feedUrl)
{
@@ -30,11 +30,11 @@ void NewsChecker::reloadNews()
// Start a netjob to download the RSS feed and call rssDownloadFinished() when it's done.
if (isLoadingNews())
{
- QLOG_INFO() << "Ignored request to reload news. Currently reloading already.";
+ qDebug() << "Ignored request to reload news. Currently reloading already.";
return;
}
- QLOG_INFO() << "Reloading news.";
+ qDebug() << "Reloading news.";
NetJob* job = new NetJob("News RSS Feed");
job->addNetAction(ByteArrayDownload::make(m_feedUrl));
@@ -47,7 +47,7 @@ void NewsChecker::reloadNews()
void NewsChecker::rssDownloadFinished()
{
// Parse the XML file and process the RSS feed entries.
- QLOG_DEBUG() << "Finished loading RSS feed.";
+ qDebug() << "Finished loading RSS feed.";
QByteArray data;
{
@@ -83,12 +83,12 @@ void NewsChecker::rssDownloadFinished()
QString errorMsg = "An unknown error occurred.";
if (NewsEntry::fromXmlElement(element, entry.get(), &errorMsg))
{
- QLOG_DEBUG() << "Loaded news entry" << entry->title;
+ qDebug() << "Loaded news entry" << entry->title;
m_newsEntries.append(entry);
}
else
{
- QLOG_WARN() << "Failed to load news entry at index" << i << ":" << errorMsg;
+ qWarning() << "Failed to load news entry at index" << i << ":" << errorMsg;
}
}
@@ -120,7 +120,7 @@ QString NewsChecker::getLastLoadErrorMsg() const
void NewsChecker::succeed()
{
m_lastLoadError = "";
- QLOG_DEBUG() << "News loading succeeded.";
+ qDebug() << "News loading succeeded.";
m_newsNetJob.reset();
emit newsLoaded();
}
@@ -128,7 +128,7 @@ void NewsChecker::succeed()
void NewsChecker::fail(const QString& errorMsg)
{
m_lastLoadError = errorMsg;
- QLOG_DEBUG() << "Failed to load news:" << errorMsg;
+ qDebug() << "Failed to load news:" << errorMsg;
m_newsNetJob.reset();
emit newsLoadingFailed(errorMsg);
}