Reduce amount of log spam (#11898)
This commit is contained in:
parent
0a03b09f5d
commit
2cb5e0771b
4 changed files with 3 additions and 13 deletions
|
@ -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, {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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> {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue