Skip to content

Commit

Permalink
Include age information when deleting cached file
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Oct 29, 2024
1 parent 14420dc commit f04d567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda_lock/lookup_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def clear_old_files_from_cache(cache: Path, *, max_age_seconds: float) -> None:
for file in cache.iterdir():
age_seconds = get_age_seconds(file)
if age_seconds < 0 or age_seconds >= max_age_seconds:
logger.debug("Removing old cache file %s", file)
logger.debug(f"Removing old cache file {file} of age {age_seconds}s")
file.unlink()


Expand Down

0 comments on commit f04d567

Please sign in to comment.