From 9d0f2d1ba13539db7096f34c5641b438b23eb226 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 18 May 2024 22:28:51 +0100 Subject: [PATCH] feat(server): don't log validation ok --- .../server/src/gitforge/forgejo/branch/validate_positions.rs | 1 - crates/server/src/gitforge/forgejo/mod.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/server/src/gitforge/forgejo/branch/validate_positions.rs b/crates/server/src/gitforge/forgejo/branch/validate_positions.rs index 5ad5ba59..9facb33e 100644 --- a/crates/server/src/gitforge/forgejo/branch/validate_positions.rs +++ b/crates/server/src/gitforge/forgejo/branch/validate_positions.rs @@ -140,7 +140,6 @@ pub async fn validate_positions( ); return Err(Error::BranchHasNoCommits(repo_config.branches().dev())); }; - info!("Validation - OK"); Ok(ValidatedPositions { main, diff --git a/crates/server/src/gitforge/forgejo/mod.rs b/crates/server/src/gitforge/forgejo/mod.rs index 870aa5e8..4046abd6 100644 --- a/crates/server/src/gitforge/forgejo/mod.rs +++ b/crates/server/src/gitforge/forgejo/mod.rs @@ -139,8 +139,7 @@ impl super::ForgeLike for ForgeJoEnv { }; info!("Validating..."); git::validate(&repository, &self.repo_details) - .map_err(|e| git::repository::Error::Validation(e.to_string())) - .inspect(|_| info!("Validation - OK"))?; + .map_err(|e| git::repository::Error::Validation(e.to_string()))?; Ok(repository) } }