Skip to content

Commit

Permalink
log cache info
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Jun 5, 2024
1 parent f80ec52 commit 438d58b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bioimageio_collection_backoffice/s3_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def __post_init__(self):
self.load_file = self._cache(self.load_file)
logger.debug("Created S3-Client: {}", self)

def __del__(self):
if self._cache is not None:
logger.info("cache info: {}", self._cache.cache_info)

def _bucket_exists(self, bucket: str) -> bool:
return self._client.bucket_exists(bucket)

Expand Down

0 comments on commit 438d58b

Please sign in to comment.