Improve tracing log format in cargo_workspace.rs

This commit is contained in:
Arthur Baars 2025-03-05 12:49:42 +01:00 committed by GitHub
parent 55d61be9a3
commit c053cc72a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -299,7 +299,9 @@ impl CargoWorkspace {
);
if let Ok((_, Some(ref e))) = res {
tracing::warn!(
"`cargo metadata` failed on `{cargo_toml}`, but retry with `--no-deps` succeeded"
%cargo_toml,
%e,
"`cargo metadata` failed, but retry with `--no-deps` succeeded"
);
tracing::debug!("{e:?}");
}