Remove extra details from interpreter query traces (#3803)

Cherry-picked from
https://github.com/astral-sh/uv/pull/3797/commits/8f135c26f46c6fa84ac534a775c5212a0981690a
This commit is contained in:
Zanie Blue
2024-05-23 19:18:05 -04:00
committed by GitHub
parent a9d9a6c13f
commit 73b6a80f23
2 changed files with 1 additions and 6 deletions
+1 -1
View File
@@ -651,7 +651,7 @@ pub fn find_default_interpreter(cache: &Cache) -> Result<InterpreterResult, Erro
/// the first available version.
///
/// See [`find_interpreter`] for more details on interpreter discovery.
#[instrument(skip_all, fields(?request))]
#[instrument(skip_all, fields(request))]
pub fn find_best_interpreter(
request: &InterpreterRequest,
system: SystemPython,
-5
View File
@@ -639,11 +639,6 @@ impl InterpreterInfo {
executable.display()
);
let info = Self::query(executable, cache)?;
trace!(
"Found Python {} at {}",
info.markers.python_full_version(),
executable.display()
);
// If `executable` is a pyenv shim, a bash script that redirects to the activated
// python executable at another path, we're not allowed to cache the interpreter info.