Skip to content

Commit

Permalink
Remove duplicate log when searching for interpreters (#9092)
Browse files Browse the repository at this point in the history
e.g., as seen in #9088
  • Loading branch information
zanieb authored Nov 13, 2024
1 parent 709e45f commit 61569d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,9 +807,8 @@ pub fn find_python_installations<'a>(
}
})),
PythonRequest::Directory(path) => Box::new(std::iter::once({
debug!("Checking for Python interpreter in {request}");
if preference.allows(PythonSource::ProvidedPath) {
debug!("Checking for Python interpreter at {request}");
debug!("Checking for Python interpreter in {request}");
match python_installation_from_directory(path, cache) {
Ok(installation) => Ok(FindPythonResult::Ok(installation)),
Err(InterpreterError::NotFound(_)) => {
Expand All @@ -834,9 +833,8 @@ pub fn find_python_installations<'a>(
}
})),
PythonRequest::ExecutableName(name) => {
debug!("Searching for Python interpreter with {request}");
if preference.allows(PythonSource::SearchPath) {
debug!("Checking for Python interpreter at {request}");
debug!("Searching for Python interpreter with {request}");
Box::new(
python_interpreters_with_executable_name(name, cache)
.filter(move |result| {
Expand Down

0 comments on commit 61569d0

Please sign in to comment.