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/auth/MojangAccount.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'logic/auth/MojangAccount.cpp') diff --git a/logic/auth/MojangAccount.cpp b/logic/auth/MojangAccount.cpp index 19c56ae6..69a24c09 100644 --- a/logic/auth/MojangAccount.cpp +++ b/logic/auth/MojangAccount.cpp @@ -26,14 +26,14 @@ #include #include -#include +#include MojangAccountPtr MojangAccount::loadFromJson(const QJsonObject &object) { // The JSON object must at least have a username for it to be valid. if (!object.value("username").isString()) { - QLOG_ERROR() << "Can't load Mojang account info from JSON object. Username field is " + qCritical() << "Can't load Mojang account info from JSON object. Username field is " "missing or of the wrong type."; return nullptr; } @@ -45,7 +45,7 @@ MojangAccountPtr MojangAccount::loadFromJson(const QJsonObject &object) QJsonArray profileArray = object.value("profiles").toArray(); if (profileArray.size() < 1) { - QLOG_ERROR() << "Can't load Mojang account with username \"" << username + qCritical() << "Can't load Mojang account with username \"" << username << "\". No profiles found."; return nullptr; } @@ -59,7 +59,7 @@ MojangAccountPtr MojangAccount::loadFromJson(const QJsonObject &object) bool legacy = profileObject.value("legacy").toBool(false); if (id.isEmpty() || name.isEmpty()) { - QLOG_WARN() << "Unable to load a profile because it was missing an ID or a name."; + qWarning() << "Unable to load a profile because it was missing an ID or a name."; continue; } profiles.append({id, name, legacy}); -- cgit v1.2.3