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/settings | |
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/settings')
-rw-r--r-- | logic/settings/SettingsObject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/settings/SettingsObject.cpp b/logic/settings/SettingsObject.cpp index b28033c5..280c07fa 100644 --- a/logic/settings/SettingsObject.cpp +++ b/logic/settings/SettingsObject.cpp @@ -16,7 +16,7 @@ #include "logic/settings/SettingsObject.h" #include "logic/settings/Setting.h" #include "logic/settings/OverrideSetting.h" -#include "logger/QsLog.h" +#include <QDebug> #include <QVariant> @@ -33,7 +33,7 @@ std::shared_ptr<Setting> SettingsObject::registerOverride(std::shared_ptr<Settin { if (contains(original->id())) { - QLOG_ERROR() << QString("Failed to register setting %1. ID already exists.") + qCritical() << QString("Failed to register setting %1. ID already exists.") .arg(original->id()); return nullptr; // Fail } @@ -50,7 +50,7 @@ std::shared_ptr<Setting> SettingsObject::registerSetting(QStringList synonyms, Q return nullptr; if (contains(synonyms.first())) { - QLOG_ERROR() << QString("Failed to register setting %1. ID already exists.") + qCritical() << QString("Failed to register setting %1. ID already exists.") .arg(synonyms.first()); return nullptr; // Fail } @@ -81,7 +81,7 @@ bool SettingsObject::set(const QString &id, QVariant value) auto setting = getSetting(id); if (!setting) { - QLOG_ERROR() << QString("Error changing setting %1. Setting doesn't exist.").arg(id); + qCritical() << QString("Error changing setting %1. Setting doesn't exist.").arg(id); return false; } else |