Log When Pulling Keys Out of the Cache

This commit is contained in:
Jeremie J. Jarosh 2023-08-19 10:42:14 -05:00 committed by Dragoon Aethis
parent 269688afae
commit 6c7df3aac2

View File

@ -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...")