diff --git a/src/components/eventbus.ts b/src/components/eventbus.ts index 3df0b47dc..526a8724b 100644 --- a/src/components/eventbus.ts +++ b/src/components/eventbus.ts @@ -54,7 +54,7 @@ export class EventBus { fire(eventName: T, arg: EventArgs[T]): void fire(eventName: EventName): void fire(eventName: EventName, arg?: any): void { - if (eventName !== 'DOCUMENT_CHANGED') { + if ([DocumentChanged, ViewerStatusChanged].includes(eventName)) { logger.log(eventName + (arg ? `: ${JSON.stringify(arg)}` : '')) } this.eventEmitter.emit(eventName, arg)