From 6d920cae2704016869500889a92b358d845b69e1 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 27 Jan 2026 21:42:25 +0000 Subject: improve logging --- src/purgatory/sync/context.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/purgatory/sync/context.rs b/src/purgatory/sync/context.rs index 0df8be0..904f8af 100644 --- a/src/purgatory/sync/context.rs +++ b/src/purgatory/sync/context.rs @@ -403,7 +403,7 @@ impl SyncContext for RealSyncContext { "Fetch completed after retries - some OIDs were missing from remote" ); } else { - debug!(fetched_count = fetched.len(), "Successfully fetched OIDs"); + debug!(url = %url, fetched_count = fetched.len(), "Successfully fetched OIDs"); } return Ok(fetched); @@ -418,7 +418,9 @@ impl SyncContext for RealSyncContext { if line.contains("not our ref") { // Extract the OID from lines like: // "fatal: remote error: upload-pack: not our ref " - line.split("not our ref").nth(1).map(|s| s.trim().to_string()) + line.split("not our ref") + .nth(1) + .map(|s| s.trim().to_string()) } else { None } @@ -464,11 +466,7 @@ impl SyncContext for RealSyncContext { } } - return Err(anyhow::anyhow!( - "git fetch failed for {}: {}", - url, - stderr - )); + return Err(anyhow::anyhow!("git fetch failed for {}: {}", url, stderr)); } Err(e) => { return Err(anyhow::anyhow!( -- cgit v1.2.3