From 6c7df3aac2946a10f8fc2339e55358009cb2b118 Mon Sep 17 00:00:00 2001 From: "Jeremie J. Jarosh" Date: Sat, 19 Aug 2023 10:42:14 -0500 Subject: [PATCH] Log When Pulling Keys Out of the Cache --- itch_dl/keys.py | 1 + 1 file changed, 1 insertion(+) diff --git a/itch_dl/keys.py b/itch_dl/keys.py index 27d4340..307eb3d 100644 --- a/itch_dl/keys.py +++ b/itch_dl/keys.py @@ -10,6 +10,7 @@ cached_owned_keys: Optional[Tuple[Dict[int, str], List[str]]] = None def get_owned_keys(client: ItchApiClient) -> Tuple[Dict[int, str], List[str]]: global cached_owned_keys if cached_owned_keys is not None: + logging.debug(f"Fetched {len(cached_owned_keys[0])} download keys from cache.") return cached_owned_keys logging.info("Fetching all download keys...")