Skip to content

Commit bd74375

Browse files
committed
dist: simplify tracing instrumentation
1 parent 6bd69e0 commit bd74375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dist/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ pub(crate) struct DistOptions<'a> {
901901
// an upgrade then all the existing components will be upgraded.
902902
//
903903
// Returns the manifest's hash if anything changed.
904-
#[tracing::instrument(level = "trace", err(level = "trace"), skip_all, fields(profile=format!("{:?}", opts.profile), prefix=prefix.path().to_string_lossy().to_string()))]
904+
#[tracing::instrument(level = "trace", err(level = "trace"), skip_all, fields(profile = ?opts.profile, prefix = %prefix.path().display()))]
905905
pub(crate) async fn update_from_dist(
906906
prefix: &InstallPrefix,
907907
opts: &DistOptions<'_>,

0 commit comments

Comments
 (0)