Skip to content

Commit

Permalink
Add nuance to prefetch logging (#9984)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Dec 17, 2024
1 parent 37b11dd commit 294da52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/uv-resolver/src/resolver/batch_prefetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Ok(())
Expand Down

0 comments on commit 294da52

Please sign in to comment.