From ee83def127272720232113ac83d41c66cc0eaae5 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 18 May 2024 22:26:44 +0100 Subject: [PATCH] feat(server): don't log individual internal messages --- crates/server/src/actors/repo/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/server/src/actors/repo/mod.rs b/crates/server/src/actors/repo/mod.rs index 40ee20d1..496817c6 100644 --- a/crates/server/src/actors/repo/mod.rs +++ b/crates/server/src/actors/repo/mod.rs @@ -91,7 +91,6 @@ impl Handler for RepoActor { type Result = (); #[tracing::instrument(name = "RepoActor::CloneRepo", skip_all, fields(repo = %self.details, gitdir = %self.details.gitdir))] fn handle(&mut self, _msg: CloneRepo, ctx: &mut Self::Context) -> Self::Result { - info!("Message Received"); let gitdir = self.details.gitdir.clone(); match self.forge.repo_clone(gitdir) { Ok(repository) => { @@ -116,7 +115,6 @@ impl Handler for RepoActor { type Result = (); #[tracing::instrument(name = "RepoActor::LoadConfigFromRepo", skip_all, fields(repo = %self.details))] fn handle(&mut self, _msg: LoadConfigFromRepo, ctx: &mut Self::Context) -> Self::Result { - info!("Message Received"); let details = self.details.clone(); let addr = ctx.address(); let forge = self.forge.clone(); @@ -134,7 +132,6 @@ impl Handler for RepoActor { type Result = (); #[tracing::instrument(name = "RepoActor::LoadedConfig", skip_all, fields(repo = %self.details, branches = %msg.0))] fn handle(&mut self, msg: LoadedConfig, ctx: &mut Self::Context) -> Self::Result { - info!("Message Received"); let repo_config = msg.0; self.details.repo_config.replace(repo_config); @@ -166,7 +163,6 @@ impl Handler for RepoActor { // do nothing } } - info!("Message Received"); if self.webhook_id.is_none() { webhook::register( self.details.clone(), @@ -210,7 +206,6 @@ impl Handler for RepoActor { fields(token = %self.message_token, repo = %self.details, main = %msg.main, next= %msg.next, dev = %msg.dev)) ] fn handle(&mut self, msg: StartMonitoring, ctx: &mut Self::Context) -> Self::Result { - info!("Message Received"); let Some(repo_config) = self.details.repo_config.clone() else { warn!("No config loaded"); return; @@ -254,7 +249,6 @@ impl Handler for RepoActor { type Result = (); #[tracing::instrument(name = "RepoActor::WebhookRegistered", skip_all, fields(repo = %self.details, webhook_id = %msg.0))] fn handle(&mut self, msg: WebhookRegistered, _ctx: &mut Self::Context) -> Self::Result { - info!("Message Received"); self.webhook_id.replace(msg.0); self.webhook_auth.replace(msg.1); } @@ -267,7 +261,6 @@ impl Handler for RepoActor { type Result = (); #[tracing::instrument(name = "RepoActor::AdvanceMainTo", skip_all, fields(repo = %self.details, commit = %msg.0))] fn handle(&mut self, msg: AdvanceMainTo, ctx: &mut Self::Context) -> Self::Result { - info!("Message Received"); let Some(repo_config) = self.details.repo_config.clone() else { warn!("No config loaded"); return;