upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-27 21:42:25 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-27 21:42:25 +0000
commit6d920cae2704016869500889a92b358d845b69e1 (patch)
treeb4988ea92bb80baf50b02920fde1f80a45aa7bb6
parent847acdecb9c28a5307123b9ee685b769a598cfc1 (diff)
improve logging
-rw-r--r--src/purgatory/sync/context.rs12
1 files changed, 5 insertions, 7 deletions
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 {
403 "Fetch completed after retries - some OIDs were missing from remote" 403 "Fetch completed after retries - some OIDs were missing from remote"
404 ); 404 );
405 } else { 405 } else {
406 debug!(fetched_count = fetched.len(), "Successfully fetched OIDs"); 406 debug!(url = %url, fetched_count = fetched.len(), "Successfully fetched OIDs");
407 } 407 }
408 408
409 return Ok(fetched); 409 return Ok(fetched);
@@ -418,7 +418,9 @@ impl SyncContext for RealSyncContext {
418 if line.contains("not our ref") { 418 if line.contains("not our ref") {
419 // Extract the OID from lines like: 419 // Extract the OID from lines like:
420 // "fatal: remote error: upload-pack: not our ref <oid>" 420 // "fatal: remote error: upload-pack: not our ref <oid>"
421 line.split("not our ref").nth(1).map(|s| s.trim().to_string()) 421 line.split("not our ref")
422 .nth(1)
423 .map(|s| s.trim().to_string())
422 } else { 424 } else {
423 None 425 None
424 } 426 }
@@ -464,11 +466,7 @@ impl SyncContext for RealSyncContext {
464 } 466 }
465 } 467 }
466 468
467 return Err(anyhow::anyhow!( 469 return Err(anyhow::anyhow!("git fetch failed for {}: {}", url, stderr));
468 "git fetch failed for {}: {}",
469 url,
470 stderr
471 ));
472 } 470 }
473 Err(e) => { 471 Err(e) => {
474 return Err(anyhow::anyhow!( 472 return Err(anyhow::anyhow!(