summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/modinfo.cpp10
-rw-r--r--src/modinfodialognexus.cpp5
3 files changed, 9 insertions, 8 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 87ee2c8e..9dbada1c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5907,7 +5907,7 @@ void MainWindow::finishUpdateInfo()
auto finalMods = watcher->result();
if (finalMods.empty()) {
- qInfo("None of your mods appear to have had recent file updates.");
+ log::info("None of your mods appear to have had recent file updates.");
}
std::set<std::pair<QString, int>> organizedGames;
diff --git a/src/modinfo.cpp b/src/modinfo.cpp
index 3484b644..92c7366c 100644
--- a/src/modinfo.cpp
+++ b/src/modinfo.cpp
@@ -37,6 +37,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <appconfig.h>
#include <scriptextender.h>
#include <unmanagedmods.h>
+#include <log.h>
#include <QApplication>
#include <QDirIterator>
@@ -322,10 +323,9 @@ bool ModInfo::checkAllForUpdate(PluginContainer *pluginContainer, QObject *recei
qWarning() << tr("All of your mods have been checked recently. We restrict update checks to help preserve your available API requests.");
updatesAvailable = false;
} else {
- qInfo() << tr(
+ log::info("{}", tr(
"You have mods that haven't been checked within the last month using the new API. These mods must be checked before we can use the bulk update API. "
- "This will consume significantly more API requests than usual. You will need to rerun the update check once complete in order to parse the remaining mods."
- );
+ "This will consume significantly more API requests than usual. You will need to rerun the update check once complete in order to parse the remaining mods."));
}
for (auto game : organizedGames)
@@ -412,7 +412,7 @@ void ModInfo::manualUpdateCheck(PluginContainer *pluginContainer, QObject *recei
});
if (mods.size()) {
- qInfo("Checking updates for %d mods...", mods.size());
+ log::info("Checking updates for {} mods...", mods.size());
for (auto mod : mods) {
organizedGames.insert(std::make_pair<QString, int>(mod->getGameName().toLower(), mod->getNexusID()));
@@ -422,7 +422,7 @@ void ModInfo::manualUpdateCheck(PluginContainer *pluginContainer, QObject *recei
NexusInterface::instance(pluginContainer)->requestUpdates(game.second, receiver, QVariant(), game.first, QString());
}
} else {
- qInfo("None of the selected mods can be updated.");
+ log::info("None of the selected mods can be updated.");
}
}
diff --git a/src/modinfodialognexus.cpp b/src/modinfodialognexus.cpp
index e606525c..6d28cbe3 100644
--- a/src/modinfodialognexus.cpp
+++ b/src/modinfodialognexus.cpp
@@ -6,8 +6,9 @@
#include "bbcode.h"
#include <versioninfo.h>
#include <utility.h>
+#include <log.h>
-namespace shell = MOBase::shell;
+using namespace MOBase;
bool isValidModID(int id)
{
@@ -350,7 +351,7 @@ void NexusTab::onRefreshBrowser()
mod().setLastNexusQuery(QDateTime::fromSecsSinceEpoch(0));
updateWebpage();
} else {
- qInfo("Mod has no valid Nexus ID, info can't be updated.");
+ log::info("Mod has no valid Nexus ID, info can't be updated.");
}
}