Skip to content

Commit

Permalink
more tracing information when updating refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jun 22, 2023
1 parent ba777f3 commit 6906e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gix/src/remote/connection/fetch/update_refs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub(crate) fn update(
dry_run: fetch::DryRun,
write_packed_refs: fetch::WritePackedRefs,
) -> Result<update::Outcome, update::Error> {
let _span = gix_trace::detail!("update_refs()");
let _span = gix_trace::detail!("update_refs()", mappings = mappings.len());
let mut edits = Vec::new();
let mut updates = Vec::new();

Expand Down Expand Up @@ -228,6 +228,7 @@ pub(crate) fn update(

let edits = match dry_run {
fetch::DryRun::No => {
let _span = gix_trace::detail!("apply", edits = edits.len());
let (file_lock_fail, packed_refs_lock_fail) = repo
.config
.lock_timeout()
Expand Down

0 comments on commit 6906e0d

Please sign in to comment.