From 94a0a0f2ee6ab8d20259b3080343616412446e0a Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 21 Aug 2024 13:34:12 -0400 Subject: [PATCH] uv-resolver: rejigger 'trace_resolution' When I first wrote this routine, it was intended to only emit a trace for the final "unioned" resolution. But we actually moved that semantic operation to the construction of the resolution *graph*. So there is no unioned `Resolution` any more. But this is still useful to see. So I changed this to just emit a trace of *every* resolution right before constructing the graph. It might be nice to also emit a trace of the unioned graph too. Or perhaps we should do that instead if this proves too noisy. (Although this is only emitted at TRACE level.) --- crates/uv-resolver/src/resolver/mod.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/crates/uv-resolver/src/resolver/mod.rs b/crates/uv-resolver/src/resolver/mod.rs index c5f774ecb63f..b9bd978197bd 100644 --- a/crates/uv-resolver/src/resolver/mod.rs +++ b/crates/uv-resolver/src/resolver/mod.rs @@ -366,7 +366,6 @@ impl ResolverState ResolverState ResolverState ResolverState"); + } for edge in &combined.edges { trace!( - "Resolution: {} -> {}", + "Resolution edge: {} -> {}", edge.from .as_ref() .map(PackageName::as_str) @@ -619,7 +624,7 @@ impl ResolverState