1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-29 11:16:43 +00:00

cache: add log msg to _load_chunks_from_repo

For big repos, this might take a while, so at least have messages on debug level.
This commit is contained in:
Thomas Waldmann 2024-08-19 12:01:09 +02:00
parent 6605f588cf
commit 68e64adb9f
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -628,6 +628,7 @@ def add_chunk(
return ChunkListEntry(id, size)
def _load_chunks_from_repo(self):
logger.debug("Cache: querying the chunk IDs list from the repo...")
chunks = ChunkIndex()
t0 = perf_counter()
num_requests = 0
@ -651,7 +652,7 @@ def _load_chunks_from_repo(self):
del chunks[self.manifest.MANIFEST_ID]
duration = perf_counter() - t0 or 0.01
logger.debug(
"Cache: downloaded %d chunk IDs in %.2f s (%d requests), ~%s/s",
"Cache: queried %d chunk IDs in %.2f s (%d requests), ~%s/s",
num_chunks,
duration,
num_requests,