chore(git): demote routine missing-repository probes

Public Git clients may request info/refs before a repository has arrived
locally during normal event and Git-data propagation. Logging that expected
negative lookup at WARN obscures actionable Git transport failures.

Demote only the HTTP handler's pre-spawn repository existence message to
DEBUG. The RepositoryNotFound response, request metrics, and internal Git
warnings remain unchanged.

This assumes the existing error response remains sufficient client-visible
feedback. Changing push metric semantics or suppressing invariant failures is
deliberately excluded.

Validated with:
- git diff --check
- nix develop -c cargo test --lib git::handlers (11 passed)
This commit is contained in:
DanConwayDev
2026-08-08 12:42:50 +00:00
parent 4b689a6515
commit 8cb8ea5841
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed
- Log routine Git `info/refs` requests for repositories not yet available
locally at DEBUG rather than WARN; this is expected during propagation.
### Fixed
- Preserve purgatory and rejected-event recovery across abrupt termination.
+1 -1
View File
@@ -47,7 +47,7 @@ pub async fn handle_info_refs(
// Check if repository exists
if !repo_path.exists() {
warn!("Repository not found: {:?}", repo_path);
debug!("Repository not found: {:?}", repo_path);
return Err(GitError::RepositoryNotFound);
}