upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git/sync.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-03 21:49:38 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-03 21:49:38 +0000
commitf200bd1bde04ff79a40c8d73df0edde2cf28493c (patch)
treed9b18ed3833b7e40daf1d5d43646eab9d5aba84b /src/git/sync.rs
parentd392f0bc14bcd687e918d4653ae016226496b4c4 (diff)
Reduce log noise: change per-ref updates to DEBUG level
Only the final summary 'Aligned repository with state' remains at INFO level, showing the total count of refs_created/refs_updated/refs_deleted.
Diffstat (limited to 'src/git/sync.rs')
-rw-r--r--src/git/sync.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/git/sync.rs b/src/git/sync.rs
index e8e9655..b1a9b49 100644
--- a/src/git/sync.rs
+++ b/src/git/sync.rs
@@ -667,7 +667,7 @@ pub fn align_repository_with_state(repo_path: &Path, state: &RepositoryState) ->
667 match git::update_ref(repo_path, ref_name, expected_commit) { 667 match git::update_ref(repo_path, ref_name, expected_commit) {
668 Ok(()) => { 668 Ok(()) => {
669 if current_commit.is_some() { 669 if current_commit.is_some() {
670 info!( 670 debug!(
671 "Updated {} to {} in {}", 671 "Updated {} to {} in {}",
672 ref_name, 672 ref_name,
673 expected_commit, 673 expected_commit,
@@ -675,7 +675,7 @@ pub fn align_repository_with_state(repo_path: &Path, state: &RepositoryState) ->
675 ); 675 );
676 result.refs_updated += 1; 676 result.refs_updated += 1;
677 } else { 677 } else {
678 info!( 678 debug!(
679 "Created {} at {} in {}", 679 "Created {} at {} in {}",
680 ref_name, 680 ref_name,
681 expected_commit, 681 expected_commit,
@@ -701,7 +701,7 @@ pub fn align_repository_with_state(repo_path: &Path, state: &RepositoryState) ->
701 if let Some(head_commit) = state.get_branch_commit(branch_name) { 701 if let Some(head_commit) = state.get_branch_commit(branch_name) {
702 match git::try_set_head_if_available(repo_path, head_ref, head_commit) { 702 match git::try_set_head_if_available(repo_path, head_ref, head_commit) {
703 Ok(true) => { 703 Ok(true) => {
704 info!("Set HEAD to {} in {}", head_ref, repo_path.display()); 704 debug!("Set HEAD to {} in {}", head_ref, repo_path.display());
705 result.head_set = true; 705 result.head_set = true;
706 } 706 }
707 Ok(false) => { 707 Ok(false) => {