Disabled an annoying log message from FileFilterIndex.

This commit is contained in:
Leon Styhre 2020-10-18 19:11:19 +02:00
parent 6d4bbeeeb3
commit 0173e1c52d

View file

@ -125,7 +125,7 @@ std::string FileFilterIndex::getIndexableKey(FileData* game,
if (getSecondary) if (getSecondary)
break; break;
key = game->metadata.get("players"); key = Utils::String::toUpper(game->metadata.get("players"));
break; break;
} }
case PUBDEV_FILTER: { case PUBDEV_FILTER: {
@ -493,8 +493,12 @@ void FileFilterIndex::manageIndexEntry(std::map<std::string, int>* index,
if (remove) { if (remove) {
// Removing entry. // Removing entry.
if (index->find(key) == index->cend()) { if (index->find(key) == index->cend()) {
// This shouldn't happen. // Disabled for now, actually this WILL happen as default values are assigned
LOG(LogInfo) << "Couldn't find entry in index! " << key; // 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 { else {
(index->at(key))--; (index->at(key))--;