Skip to content

Commit

Permalink
Don't log ViewerStatusChanged event
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Sep 21, 2023
1 parent 643aed6 commit 4e70115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/eventbus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class EventBus {
fire<T extends keyof EventArgs>(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)
Expand Down

0 comments on commit 4e70115

Please sign in to comment.