mirror of https://github.com/astral-sh/uv
Add nuance to prefetch logging (#9984)
This commit is contained in:
parent
37b11ddb22
commit
294da52610
|
|
@ -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(())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue