From 02ca5c78cf4e3b32c6cc48a5188d573497301e08 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Thu, 5 Oct 2023 15:31:28 +0100 Subject: [PATCH] Element-R: don't log every HTTP request (#3780) Since #3485, we log every request anyway, so there's no need to log twice., --- src/rust-crypto/OutgoingRequestProcessor.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/rust-crypto/OutgoingRequestProcessor.ts b/src/rust-crypto/OutgoingRequestProcessor.ts index ae5ee446575..e551c0dbaa4 100644 --- a/src/rust-crypto/OutgoingRequestProcessor.ts +++ b/src/rust-crypto/OutgoingRequestProcessor.ts @@ -164,13 +164,6 @@ export class OutgoingRequestProcessor { prefix: "", }; - try { - const response = await this.http.authedRequest(method, path, queryParams, body, opts); - logger.info(`rust-crypto: successfully made HTTP request: ${method} ${path}`); - return response; - } catch (e) { - logger.warn(`rust-crypto: error making HTTP request: ${method} ${path}: ${e}`); - throw e; - } + return await this.http.authedRequest(method, path, queryParams, body, opts); } }