From f200bd1bde04ff79a40c8d73df0edde2cf28493c Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 3 Feb 2026 21:49:38 +0000 Subject: 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. --- src/git/mod.rs | 2 +- src/git/sync.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/git/mod.rs b/src/git/mod.rs index b3fee69..1255b6f 100644 --- a/src/git/mod.rs +++ b/src/git/mod.rs @@ -253,7 +253,7 @@ pub fn update_ref(repo_path: &Path, ref_name: &str, commit_hash: &str) -> Result return Err(format!("git update-ref failed: {}", stderr)); } - info!( + debug!( "Updated ref {} to {} in {}", ref_name, commit_hash, 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) -> match git::update_ref(repo_path, ref_name, expected_commit) { Ok(()) => { if current_commit.is_some() { - info!( + debug!( "Updated {} to {} in {}", ref_name, expected_commit, @@ -675,7 +675,7 @@ pub fn align_repository_with_state(repo_path: &Path, state: &RepositoryState) -> ); result.refs_updated += 1; } else { - info!( + debug!( "Created {} at {} in {}", ref_name, expected_commit, @@ -701,7 +701,7 @@ pub fn align_repository_with_state(repo_path: &Path, state: &RepositoryState) -> if let Some(head_commit) = state.get_branch_commit(branch_name) { match git::try_set_head_if_available(repo_path, head_ref, head_commit) { Ok(true) => { - info!("Set HEAD to {} in {}", head_ref, repo_path.display()); + debug!("Set HEAD to {} in {}", head_ref, repo_path.display()); result.head_set = true; } Ok(false) => { -- cgit v1.2.3