Add debug logging for --target (#3282)

This commit is contained in:
Charlie Marsh
2024-04-26 19:31:19 -04:00
committed by GitHub
parent 2af80c28a8
commit 845dc3d8d9
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -135,6 +135,10 @@ pub(crate) async fn pip_install(
// Apply any `--target` directory.
let venv = if let Some(target) = target {
debug!(
"Using `--target` directory at {}",
target.root().user_display()
);
target.init()?;
venv.with_target(target)
} else {
+4
View File
@@ -115,6 +115,10 @@ pub(crate) async fn pip_sync(
// Apply any `--target` directory.
let venv = if let Some(target) = target {
debug!(
"Using `--target` directory at {}",
target.root().user_display()
);
target.init()?;
venv.with_target(target)
} else {
+4
View File
@@ -57,6 +57,10 @@ pub(crate) async fn pip_uninstall(
// Apply any `--target` directory.
let venv = if let Some(target) = target {
debug!(
"Using `--target` directory at {}",
target.root().user_display()
);
target.init()?;
venv.with_target(target)
} else {