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/net/PasteUpload.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/net/PasteUpload.cpp')
-rw-r--r-- | logic/net/PasteUpload.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/net/PasteUpload.cpp b/logic/net/PasteUpload.cpp index f68595c9..6bed0887 100644 --- a/logic/net/PasteUpload.cpp +++ b/logic/net/PasteUpload.cpp @@ -1,6 +1,6 @@ #include "PasteUpload.h" #include "logic/Env.h" -#include "logger/QsLog.h" +#include <QDebug> #include <QJsonObject> #include <QJsonDocument> @@ -40,7 +40,7 @@ void PasteUpload::executeTask() void PasteUpload::downloadError(QNetworkReply::NetworkError error) { // error happened during download. - QLOG_ERROR() << "Network error: " << error; + qCritical() << "Network error: " << error; emitFailed(m_reply->errorString()); } @@ -80,7 +80,7 @@ bool PasteUpload::parseResult(QJsonDocument doc) auto status = object.value("status").toString("error"); if (status == "error") { - QLOG_ERROR() << "paste.ee reported error:" << QString(object.value("error").toString()); + qCritical() << "paste.ee reported error:" << QString(object.value("error").toString()); return false; } m_pasteLink = object.value("paste").toObject().value("link").toString(); |