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/auth/flows | |
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/auth/flows')
-rw-r--r-- | logic/auth/flows/AuthenticateTask.cpp | 18 | ||||
-rw-r--r-- | logic/auth/flows/RefreshTask.cpp | 10 | ||||
-rw-r--r-- | logic/auth/flows/ValidateTask.cpp | 2 |
3 files changed, 15 insertions, 15 deletions
diff --git a/logic/auth/flows/AuthenticateTask.cpp b/logic/auth/flows/AuthenticateTask.cpp index ed8c52fb..4141f00d 100644 --- a/logic/auth/flows/AuthenticateTask.cpp +++ b/logic/auth/flows/AuthenticateTask.cpp @@ -23,7 +23,7 @@ #include <QJsonArray> #include <QVariant> -#include "logger/QsLog.h" +#include <QDebug> AuthenticateTask::AuthenticateTask(MojangAccount * account, const QString &password, QObject *parent) @@ -74,11 +74,11 @@ void AuthenticateTask::processResponse(QJsonObject responseData) { // Read the response data. We need to get the client token, access token, and the selected // profile. - QLOG_DEBUG() << "Processing authentication response."; - // QLOG_DEBUG() << responseData; + qDebug() << "Processing authentication response."; + // qDebug() << responseData; // If we already have a client token, make sure the one the server gave us matches our // existing one. - QLOG_DEBUG() << "Getting client token."; + qDebug() << "Getting client token."; QString clientToken = responseData.value("clientToken").toString(""); if (clientToken.isEmpty()) { @@ -95,7 +95,7 @@ void AuthenticateTask::processResponse(QJsonObject responseData) m_account->m_clientToken = clientToken; // Now, we set the access token. - QLOG_DEBUG() << "Getting access token."; + qDebug() << "Getting access token."; QString accessToken = responseData.value("accessToken").toString(""); if (accessToken.isEmpty()) { @@ -110,7 +110,7 @@ void AuthenticateTask::processResponse(QJsonObject responseData) // Mojang hasn't yet implemented the profile system, // but we might as well support what's there so we // don't have trouble implementing it later. - QLOG_DEBUG() << "Loading profile list."; + qDebug() << "Loading profile list."; QJsonArray availableProfiles = responseData.value("availableProfiles").toArray(); QList<AccountProfile> loadedProfiles; for (auto iter : availableProfiles) @@ -126,7 +126,7 @@ void AuthenticateTask::processResponse(QJsonObject responseData) // This should never happen, but we might as well // warn about it if it does so we can debug it easily. // You never know when Mojang might do something truly derpy. - QLOG_WARN() << "Found entry in available profiles list with missing ID or name " + qWarning() << "Found entry in available profiles list with missing ID or name " "field. Ignoring it."; } @@ -140,7 +140,7 @@ void AuthenticateTask::processResponse(QJsonObject responseData) // We do need to make sure that the current profile that the server gave us // is actually in the available profiles list. // If it isn't, we'll just fail horribly (*shouldn't* ever happen, but you never know). - QLOG_DEBUG() << "Setting current profile."; + qDebug() << "Setting current profile."; QJsonObject currentProfile = responseData.value("selectedProfile").toObject(); QString currentProfileId = currentProfile.value("id").toString(""); if (currentProfileId.isEmpty()) @@ -173,7 +173,7 @@ void AuthenticateTask::processResponse(QJsonObject responseData) // We've made it through the minefield of possible errors. Return true to indicate that // we've succeeded. - QLOG_DEBUG() << "Finished reading authentication response."; + qDebug() << "Finished reading authentication response."; changeState(STATE_SUCCEEDED); } diff --git a/logic/auth/flows/RefreshTask.cpp b/logic/auth/flows/RefreshTask.cpp index 4ca73b21..2216c7e4 100644 --- a/logic/auth/flows/RefreshTask.cpp +++ b/logic/auth/flows/RefreshTask.cpp @@ -22,7 +22,7 @@ #include <QJsonArray> #include <QVariant> -#include "logger/QsLog.h" +#include <QDebug> RefreshTask::RefreshTask(MojangAccount *account) : YggdrasilTask(account) { @@ -63,9 +63,9 @@ void RefreshTask::processResponse(QJsonObject responseData) { // Read the response data. We need to get the client token, access token, and the selected // profile. - QLOG_DEBUG() << "Processing authentication response."; + qDebug() << "Processing authentication response."; - // QLOG_DEBUG() << responseData; + // qDebug() << responseData; // If we already have a client token, make sure the one the server gave us matches our // existing one. QString clientToken = responseData.value("clientToken").toString(""); @@ -82,7 +82,7 @@ void RefreshTask::processResponse(QJsonObject responseData) } // Now, we set the access token. - QLOG_DEBUG() << "Getting new access token."; + qDebug() << "Getting new access token."; QString accessToken = responseData.value("accessToken").toString(""); if (accessToken.isEmpty()) { @@ -120,7 +120,7 @@ void RefreshTask::processResponse(QJsonObject responseData) // We've made it through the minefield of possible errors. Return true to indicate that // we've succeeded. - QLOG_DEBUG() << "Finished reading refresh response."; + qDebug() << "Finished reading refresh response."; // Reset the access token. m_account->m_accessToken = accessToken; changeState(STATE_SUCCEEDED); diff --git a/logic/auth/flows/ValidateTask.cpp b/logic/auth/flows/ValidateTask.cpp index f3a8a23e..21afb596 100644 --- a/logic/auth/flows/ValidateTask.cpp +++ b/logic/auth/flows/ValidateTask.cpp @@ -23,7 +23,7 @@ #include <QJsonArray> #include <QVariant> -#include "logger/QsLog.h" +#include <QDebug> ValidateTask::ValidateTask(MojangAccount * account, QObject *parent) : YggdrasilTask(account, parent) |