Implement logging system

This commit is contained in:
Paul Frazee 2023-01-02 17:38:13 -06:00
parent 99cec71ed7
commit f6a0e634d7
39 changed files with 442 additions and 125 deletions

View file

@ -114,20 +114,28 @@ export class ProfileUiModel {
await Promise.all([
this.profile
.setup()
.catch(err => console.error('Failed to fetch profile', err)),
.catch(err =>
this.rootStore.log.error('Failed to fetch profile', err.toString()),
),
this.feed
.setup()
.catch(err => console.error('Failed to fetch feed', err)),
.catch(err =>
this.rootStore.log.error('Failed to fetch feed', err.toString()),
),
])
if (this.isUser) {
await this.memberships
.setup()
.catch(err => console.error('Failed to fetch members', err))
.catch(err =>
this.rootStore.log.error('Failed to fetch members', err.toString()),
)
}
if (this.isScene) {
await this.members
.setup()
.catch(err => console.error('Failed to fetch members', err))
.catch(err =>
this.rootStore.log.error('Failed to fetch members', err.toString()),
)
}
}