Add nuance to prefetch logging (#9984)

This commit is contained in:
Charlie Marsh 2024-12-17 17:52:45 -05:00 committed by GitHub
parent 37b11ddb22
commit 294da52610
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -235,7 +235,11 @@ impl BatchPrefetcher {
} }
} }
debug!("Prefetching {prefetch_count} {name} versions"); match prefetch_count {
0 => debug!("No `{name}` versions to prefetch"),
1 => debug!("Prefetched 1 `{name}` version"),
_ => debug!("Prefetched {prefetch_count} `{name}` versions"),
}
self.last_prefetch.insert(name.clone(), num_tried); self.last_prefetch.insert(name.clone(), num_tried);
Ok(()) Ok(())