From df9f2e7b99524ecf4f01722f707ba40f4065e780 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 19 Aug 2024 12:01:09 +0200 Subject: [PATCH] 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. --- src/borg/cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/cache.py b/src/borg/cache.py index 3e7f113f6a..5fea4c0c95 100644 --- a/src/borg/cache.py +++ b/src/borg/cache.py @@ -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,