Small forking log improvements (#4894)

I found the current messages insufficient when tracking down a bug.
This commit is contained in:
konsti 2024-07-08 15:56:57 +02:00 committed by GitHub
parent 4f340580c7
commit 57cfe1e229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -340,7 +340,10 @@ impl<InstalledPackages: InstalledPackagesProvider> ResolverState<InstalledPackag
'FORK: while let Some(mut state) = forked_states.pop() { 'FORK: while let Some(mut state) = forked_states.pop() {
if !state.markers.is_universal() { if !state.markers.is_universal() {
if let Some(requires_python) = state.requires_python.as_ref() { if let Some(requires_python) = state.requires_python.as_ref() {
debug!("Solving split {} ({})", state.markers, requires_python); debug!(
"Solving split {} (requires-python: {})",
state.markers, requires_python
);
} else { } else {
debug!("Solving split {}", state.markers); debug!("Solving split {}", state.markers);
} }
@ -548,8 +551,9 @@ impl<InstalledPackages: InstalledPackagesProvider> ResolverState<InstalledPackag
diverging_packages, diverging_packages,
} => { } => {
debug!( debug!(
"Splitting resolution on {} over {}", "Splitting resolution on {}=={} over {}",
state.next, state.next,
version,
diverging_packages diverging_packages
.iter() .iter()
.map(ToString::to_string) .map(ToString::to_string)