Disable the progress bar with RUST_LOG (#10901)

This commit is contained in:
konsti 2025-01-23 18:03:15 +01:00 committed by GitHub
parent 26210cc0e6
commit 349c0b6fc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,7 +156,9 @@ impl GlobalSettings {
.combine(env(env::UV_PYTHON_DOWNLOADS))
.combine(workspace.and_then(|workspace| workspace.globals.python_downloads))
.unwrap_or_default(),
no_progress: args.no_progress,
// Disable the progress bar with `RUST_LOG` to avoid progress fragments interleaving
// with log messages.
no_progress: args.no_progress || std::env::var_os(EnvVars::RUST_LOG).is_some(),
installer_metadata: !args.no_installer_metadata,
}
}