Avoid ANSI codes in debug! messages (#15843)

## Summary

I spent time trying to figure out how to support this but came up empty.
It _seems_ like maybe the `DefaultFields` implementation in
`tracing-subscriber` uses debug formatting for fields...? So if you have
a string with ANSI codes, they end up printing as unformatted values? I
even reverted all our custom formatting in `logging.rs` and saw the same
thing.

Closes https://github.com/astral-sh/uv/issues/15840.
This commit is contained in:
Charlie Marsh 2025-09-17 10:30:43 -04:00 committed by GitHub
parent 48f507680c
commit dea1700945
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 29 additions and 35 deletions

View file

@ -2235,7 +2235,7 @@ mod tests {
assert!(matches!(
client.get(server.uri()).send().await,
Err(reqwest_middleware::Error::Middleware(_))
),);
));
Ok(())
}