From 0721b63448f0f075bc64343f0362b2fdda4e7fff Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 10 Apr 2024 11:40:06 +0100 Subject: [PATCH] fix(server): stop logging all network requests --- src/server/forge/forgejo/config.rs | 4 ++-- src/server/forge/forgejo/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/forge/forgejo/config.rs b/src/server/forge/forgejo/config.rs index f2c076fb..31fac642 100644 --- a/src/server/forge/forgejo/config.rs +++ b/src/server/forge/forgejo/config.rs @@ -46,7 +46,7 @@ pub async fn load( network::RequestBody::None, network::ResponseType::Json, None, - network::NetRequestLogging::Both, + network::NetRequestLogging::None, ); let result = net.get::(request).await; let response = result.map_err(|e| match e { @@ -140,7 +140,7 @@ pub async fn validate( network::RequestBody::None, network::ResponseType::Json, None, - network::NetRequestLogging::Both, + network::NetRequestLogging::None, ); let result = net.get::(request).await; let response = result.map_err(|e| { diff --git a/src/server/forge/forgejo/mod.rs b/src/server/forge/forgejo/mod.rs index fe04f780..b9db699e 100644 --- a/src/server/forge/forgejo/mod.rs +++ b/src/server/forge/forgejo/mod.rs @@ -41,7 +41,7 @@ async fn get_commit_history( network::RequestBody::None, network::ResponseType::Json, None, - network::NetRequestLogging::Both, + network::NetRequestLogging::None, ); let result = net.get::>(request).await; let response = result.map_err(|e| {