summaryrefslogtreecommitdiffstats
path: root/logic/screenshots/ImgurUpload.cpp
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/screenshots/ImgurUpload.cpp
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/screenshots/ImgurUpload.cpp')
-rw-r--r--logic/screenshots/ImgurUpload.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/logic/screenshots/ImgurUpload.cpp b/logic/screenshots/ImgurUpload.cpp
index 91643e68..1d490436 100644
--- a/logic/screenshots/ImgurUpload.cpp
+++ b/logic/screenshots/ImgurUpload.cpp
@@ -10,7 +10,7 @@
#include "logic/net/URLConstants.h"
#include "logic/Env.h"
-#include "logger/QsLog.h"
+#include <QDebug>
ImgurUpload::ImgurUpload(ScreenshotPtr shot) : NetAction(), m_shot(shot)
{
@@ -59,7 +59,7 @@ void ImgurUpload::start()
}
void ImgurUpload::downloadError(QNetworkReply::NetworkError error)
{
- QLOG_DEBUG() << m_reply->errorString();
+ qDebug() << m_reply->errorString();
m_status = Job_Failed;
}
void ImgurUpload::downloadFinished()
@@ -72,14 +72,14 @@ void ImgurUpload::downloadFinished()
QJsonDocument doc = QJsonDocument::fromJson(data, &jsonError);
if (jsonError.error != QJsonParseError::NoError)
{
- QLOG_DEBUG() << jsonError.errorString();
+ qDebug() << jsonError.errorString();
emit failed(m_index_within_job);
return;
}
auto object = doc.object();
if (!object.value("success").toBool())
{
- QLOG_DEBUG() << doc.toJson();
+ qDebug() << doc.toJson();
emit failed(m_index_within_job);
return;
}
@@ -91,7 +91,7 @@ void ImgurUpload::downloadFinished()
}
else
{
- QLOG_DEBUG() << m_reply->readAll();
+ qDebug() << m_reply->readAll();
m_reply.reset();
emit failed(m_index_within_job);
return;