mirror of
https://github.com/astral-sh/uv
synced 2026-06-21 13:47:25 +00:00
Don't capture secrets in tracing (#19826)
These fields aren't logged in uv release builds, but we shouldn't capture them in the first place.
This commit is contained in:
@@ -122,7 +122,7 @@ impl KeyringProvider {
|
||||
}
|
||||
|
||||
/// Store credentials to the system keyring.
|
||||
#[instrument(skip(self))]
|
||||
#[instrument(skip_all, fields(service = ?service, username = ?username))]
|
||||
async fn store_native(
|
||||
&self,
|
||||
service: &str,
|
||||
|
||||
@@ -1131,7 +1131,7 @@ impl ManagedPythonDownload {
|
||||
/// For CPython without a user-configured mirror, the default Astral mirror is tried first.
|
||||
/// Each attempt tries all URLs in sequence without backoff between them; backoff is only
|
||||
/// applied after all URLs have been exhausted.
|
||||
#[instrument(skip(client, installation_dir, scratch_dir, reporter), fields(download = % self.key()))]
|
||||
#[instrument(skip_all, fields(download = % self.key()))]
|
||||
pub async fn fetch_with_retry(
|
||||
&self,
|
||||
client: &BaseClient,
|
||||
|
||||
Reference in New Issue
Block a user