Reduce amount of log spam (#11898)

This commit is contained in:
Richard van der Hoff 2023-11-20 12:24:13 +00:00 committed by GitHub
parent 0a03b09f5d
commit 2cb5e0771b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 13 deletions

View file

@ -435,11 +435,6 @@ class MatrixClientPegClass implements IMatrixClientPeg {
}
this.matrixClient = createMatrixClient(opts);
// we're going to add eventlisteners for each matrix event tile, so the
// potential number of event listeners is quite high.
this.matrixClient.setMaxListeners(500);
this.matrixClient.setGuest(Boolean(creds.guest));
const notifTimelineSet = new EventTimelineSet(undefined, {

View file

@ -544,10 +544,7 @@ export default class EventIndex extends EventEmitter {
const decryptionPromises = matrixEvents
.filter((event) => event.isEncrypted())
.map((event) => {
return client.decryptEventIfNeeded(event, {
isRetry: true,
emit: false,
});
return client.decryptEventIfNeeded(event, { emit: false });
});
// Let us wait for all the events to get decrypted.

View file

@ -49,6 +49,7 @@ export class CallStore extends AsyncStoreWithClient<{}> {
private constructor() {
super(defaultDispatcher);
this.setMaxListeners(100); // One for each RoomTile
}
protected async onAction(): Promise<void> {

View file

@ -204,10 +204,7 @@ export default abstract class Exporter {
const decryptionPromises = events
.filter((event) => event.isEncrypted())
.map((event) => {
return this.room.client.decryptEventIfNeeded(event, {
isRetry: true,
emit: false,
});
return this.room.client.decryptEventIfNeeded(event, { emit: false });
});
// Wait for all the events to get decrypted.