From e6c4c77ba10bd54dbf069d9156b186b3a1527b5f Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 16 Feb 2024 09:13:16 -0600 Subject: [PATCH] Use string display instead of debug for url parse trace (#1498) e.g. `uv_client::html::parse url=https://download.pytorch.org/whl/torch_stable.html` instead of `uv_client::html::parse url=Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("download.pytorch.org")), port: None, path: "/whl/torch_stable.html", query: None, fragment: None }` --- crates/uv-client/src/html.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv-client/src/html.rs b/crates/uv-client/src/html.rs index bfd432337..0ccbf7b61 100644 --- a/crates/uv-client/src/html.rs +++ b/crates/uv-client/src/html.rs @@ -18,7 +18,7 @@ pub(crate) struct SimpleHtml { impl SimpleHtml { /// Parse the list of [`File`]s from the simple HTML page returned by the given URL. - #[instrument(skip(text))] + #[instrument(skip_all, fields(url = % url))] pub(crate) fn parse(text: &str, url: &Url) -> Result { let dom = tl::parse(text, tl::ParserOptions::default())?;