Skip to content

Commit 52525bc

Browse files
authored
Improve tracing log format in cargo_workspace.rs
1 parent 049f4db commit 52525bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/rust-analyzer/crates/project-model/src/cargo_workspace.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ impl CargoWorkspace {
299299
);
300300
if let Ok((_, Some(ref e))) = res {
301301
tracing::warn!(
302-
"`cargo metadata` failed on `{cargo_toml}`, but retry with `--no-deps` succeeded"
302+
%cargo_toml,
303+
%e,
304+
"`cargo metadata` failed, but retry with `--no-deps` succeeded"
303305
);
304306
tracing::debug!("{e:?}");
305307
}

0 commit comments

Comments
 (0)