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:
parent
6605f588cf
commit
68e64adb9f
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue