diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-19 04:21:45 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-22 07:39:52 -0400 |
| commit | b3d0ddb0b75da4abd59cae1508d983945c8e235d (patch) | |
| tree | c3a803fdb9c3f147a9bcf42087f2a8c46b8978a9 /src/settings.cpp | |
| parent | e071dfdfaa369a475a2d93df623c1696feee56ba (diff) | |
changed qDebug() to log::debug()
removed some commented out logging
Diffstat (limited to 'src/settings.cpp')
| -rw-r--r-- | src/settings.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 9c303442..ff5b9976 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -54,7 +54,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QPalette> #include <Qt> // for Qt::UserRole, etc -#include <QtDebug> // for qDebug, qWarning #include <Windows.h> // For ShellExecuteW, HINSTANCE, etc #include <wincred.h> // For storage @@ -635,7 +634,7 @@ void Settings::updateServers(const QList<ServerInfo> &servers) QVariantMap val = m_Settings.value(key).toMap(); QDate lastSeen = val["lastSeen"].toDate(); if (lastSeen.daysTo(now) > 30) { - qDebug("removing server %s since it hasn't been available for downloads in over a month", qUtf8Printable(key)); + log::debug("removing server {} since it hasn't been available for downloads in over a month", key); m_Settings.remove(key); } } @@ -758,10 +757,10 @@ void Settings::query(PluginContainer *pluginContainer, QWidget *parent) if (m_Settings.value(k).toString() != before[k] && !k.contains("username") && !k.contains("password")) { if (first_update) { - qDebug("Changed settings:"); + log::debug("Changed settings:"); first_update = false; } - qDebug(" %s=%s", k.toUtf8().data(), m_Settings.value(k).toString().toUtf8().data()); + log::debug(" {}={}", k, m_Settings.value(k).toString()); } m_Settings.endGroup(); } |
