mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-24 21:29:49 +00:00
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 }`
This commit is contained in:
parent
1ed6ba0ba0
commit
e6c4c77ba1
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ pub(crate) struct SimpleHtml {
|
||||||
|
|
||||||
impl SimpleHtml {
|
impl SimpleHtml {
|
||||||
/// Parse the list of [`File`]s from the simple HTML page returned by the given URL.
|
/// 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<Self, Error> {
|
pub(crate) fn parse(text: &str, url: &Url) -> Result<Self, Error> {
|
||||||
let dom = tl::parse(text, tl::ParserOptions::default())?;
|
let dom = tl::parse(text, tl::ParserOptions::default())?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue