From 0173e1c52db35a025e5154ed137d0403f7f57746 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 18 Oct 2020 19:11:19 +0200 Subject: [PATCH] Disabled an annoying log message from FileFilterIndex. --- es-app/src/FileFilterIndex.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/es-app/src/FileFilterIndex.cpp b/es-app/src/FileFilterIndex.cpp index 13b434079..77430d90a 100644 --- a/es-app/src/FileFilterIndex.cpp +++ b/es-app/src/FileFilterIndex.cpp @@ -125,7 +125,7 @@ std::string FileFilterIndex::getIndexableKey(FileData* game, if (getSecondary) break; - key = game->metadata.get("players"); + key = Utils::String::toUpper(game->metadata.get("players")); break; } case PUBDEV_FILTER: { @@ -493,8 +493,12 @@ void FileFilterIndex::manageIndexEntry(std::map* index, if (remove) { // Removing entry. if (index->find(key) == index->cend()) { - // This shouldn't happen. - LOG(LogInfo) << "Couldn't find entry in index! " << key; + // Disabled for now, actually this WILL happen as default values are assigned + // as filters, such as 'FALSE' for favorites and kidgames for non-game entries. + // This whole logic needs to be rewritten later on, but for now this is a + // workaround to get rid of the annoying log messages. +// // This shouldn't happen. +// LOG(LogInfo) << "Couldn't find entry in index! " << key; } else { (index->at(key))--;