Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarStatisticsDatabase.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 20:23:44 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 20:23:44 +1000
commit332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (patch)
treefd9c441b796b522bdd5c7f8fbd32f51b8eff2a28 /source/game/StarStatisticsDatabase.cpp
parent14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff)
The Formatting String Catastrophe
Diffstat (limited to 'source/game/StarStatisticsDatabase.cpp')
-rw-r--r--source/game/StarStatisticsDatabase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/game/StarStatisticsDatabase.cpp b/source/game/StarStatisticsDatabase.cpp
index 7a21ef2..d3b993e 100644
--- a/source/game/StarStatisticsDatabase.cpp
+++ b/source/game/StarStatisticsDatabase.cpp
@@ -15,11 +15,11 @@ StatisticsDatabase::StatisticsDatabase() : m_cacheMutex(), m_eventCache() {
try {
String name = assets->json(file).getString("eventName");
if (m_eventPaths.contains(name))
- Logger::error("Event %s defined twice, second time from %s", name, file);
+ Logger::error("Event {} defined twice, second time from {}", name, file);
else
m_eventPaths[name] = file;
} catch (std::exception const& e) {
- Logger::error("Error loading event file %s: %s", file, outputException(e, true));
+ Logger::error("Error loading event file {}: {}", file, outputException(e, true));
}
}
@@ -28,7 +28,7 @@ StatisticsDatabase::StatisticsDatabase() : m_cacheMutex(), m_eventCache() {
Json achievement = assets->json(file);
String name = achievement.getString("name");
if (m_achievementPaths.contains(name))
- Logger::error("Achievement %s defined twice, second time from %s", name, file);
+ Logger::error("Achievement {} defined twice, second time from {}", name, file);
else
m_achievementPaths[name] = file;
@@ -36,7 +36,7 @@ StatisticsDatabase::StatisticsDatabase() : m_cacheMutex(), m_eventCache() {
m_statAchievements[stat.toString()].append(name);
}
} catch (std::exception const& e) {
- Logger::error("Error loading achievement file %s: %s", file, outputException(e, true));
+ Logger::error("Error loading achievement file {}: {}", file, outputException(e, true));
}
}
}