Skip to content

Commit

Permalink
Element-R: don't log every HTTP request (#3780)
Browse files Browse the repository at this point in the history
Since #3485, we log every request anyway, so there's no need to log twice.,
  • Loading branch information
richvdh authored Oct 5, 2023
1 parent af63d9b commit 02ca5c7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/rust-crypto/OutgoingRequestProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,6 @@ export class OutgoingRequestProcessor {
prefix: "",
};

try {
const response = await this.http.authedRequest<string>(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<string>(method, path, queryParams, body, opts);
}
}

0 comments on commit 02ca5c7

Please sign in to comment.