Tone down the logging for missing games; don't bother to log when one game is being checked.

This happens a lot if you are selecting games one after the other (ie, via arrow keys) and it spams the log.
This commit is contained in:
Daniel Johnson 2024-02-02 19:29:04 -05:00 committed by Mathieu Comandon
parent 69dea32f57
commit 1e532b0405

View file

@ -268,13 +268,15 @@ class MissingGames:
def _update_missing_games(self, game_ids):
"""This is the method that runs on the worker thread; it checks each game given
and returns True if any changes to missing_game_ids was made."""
logger.debug("Checking for missing games")
changed = False
path_cache = get_path_cache()
if game_ids is None:
game_ids = path_cache
if len(game_ids) > 1:
logger.debug("Checking for %d missing games", len(game_ids))
for game_id in game_ids:
path = path_cache.get(game_id)