From 969be161d91f1464590406751a620dca23c09422 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 25 Jan 2021 18:15:01 +0100 Subject: [PATCH] Some minor log output changes. --- es-core/src/Settings.cpp | 8 ++++---- es-core/src/resources/TextureDataManager.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index 2932aca3f..f4f6022d3 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -303,7 +303,7 @@ void saveMap(pugi::xml_document& doc, std::map& map, const std::string& ty void Settings::saveFile() { - LOG(LogDebug) << "Settings::saveFile(): Saving Settings to file."; + LOG(LogDebug) << "Settings::saveFile(): Saving settings to es_settings.cfg"; const std::string path = Utils::FileSystem::getHomePath() + "/.emulationstation/es_settings.cfg"; @@ -344,7 +344,7 @@ void Settings::loadFile() pugi::xml_parse_result result = doc.load_file(path.c_str()); #endif if (!result) { - LOG(LogError) << "Could not parse Settings file.\n " << result.description(); + LOG(LogError) << "Could not parse the es_settings.cfg file\n " << result.description(); return; } @@ -364,14 +364,14 @@ void Settings::loadFile() type Settings::getFunction(const std::string& name) \ { \ if (mapName.find(name) == mapName.cend()) { \ - LOG(LogError) << "Tried to use unset setting " << name << "!"; \ + LOG(LogError) << "Tried to use unset setting " << name; \ } \ return mapName[name].second; \ } \ type Settings::getDefaultFunction(const std::string& name) \ { \ if (mapName.find(name) == mapName.cend()) { \ - LOG(LogError) << "Tried to use unset setting " << name << "!"; \ + LOG(LogError) << "Tried to use unset setting " << name; \ } \ return mapName[name].first; \ } \ diff --git a/es-core/src/resources/TextureDataManager.cpp b/es-core/src/resources/TextureDataManager.cpp index cee2d7b92..8c55d7b9f 100644 --- a/es-core/src/resources/TextureDataManager.cpp +++ b/es-core/src/resources/TextureDataManager.cpp @@ -117,13 +117,13 @@ void TextureDataManager::load(std::shared_ptr tex, bool block) if (settingVRAM < 80) { LOG(LogWarning) << "MaxVRAM is too low at " << settingVRAM << - " MiB, setting it to the minimum allowed value of 80 MiB."; + " MiB, setting it to the minimum allowed value of 80 MiB"; Settings::getInstance()->setInt("MaxVRAM", 80); settingVRAM = 80; } else if (settingVRAM > 1024) { LOG(LogWarning) << "MaxVRAM is too high at " << settingVRAM << - " MiB, setting it to the maximum allowed value of 1024 MiB."; + " MiB, setting it to the maximum allowed value of 1024 MiB"; Settings::getInstance()->setInt("MaxVRAM", 1024); settingVRAM = 1024; }