Skip to content

Commit

Permalink
Element-R: don't log every HTTP request
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 committed Oct 4, 2023
1 parent 95baccf commit 8fee5dc
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 8fee5dc

Please sign in to comment.