1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

Reduce log spam from rust crypto (#3819)

* turn the log level down to DEBUG
* don't pointlessly log every call to `outgoingRequests`
This commit is contained in:
Richard van der Hoff
2023-10-20 22:43:28 +01:00
committed by GitHub
parent 6359e10bcf
commit 6e2ac03f7e
2 changed files with 1 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ export async function initRustCrypto(
await RustSdkCryptoJs.initAsync();
// enable tracing in the rust-sdk
new RustSdkCryptoJs.Tracing(RustSdkCryptoJs.LoggerLevel.Trace).turnOn();
new RustSdkCryptoJs.Tracing(RustSdkCryptoJs.LoggerLevel.Debug).turnOn();
const u = new RustSdkCryptoJs.UserId(userId);
const d = new RustSdkCryptoJs.DeviceId(deviceId);

View File

@@ -1537,7 +1537,6 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, RustCryptoEv
// if `this.outgoingRequestLoop()` was called while `OlmMachine.outgoingRequests()` was running.
this.outgoingRequestLoopOneMoreLoop = false;
this.logger.debug("Calling OlmMachine.outgoingRequests()");
const outgoingRequests: Object[] = await this.olmMachine.outgoingRequests();
if (this.stopped) {