Implement logging system
This commit is contained in:
parent
99cec71ed7
commit
f6a0e634d7
39 changed files with 442 additions and 125 deletions
|
|
@ -104,13 +104,22 @@ export class MeModel {
|
|||
})
|
||||
await Promise.all([
|
||||
this.memberships?.setup().catch(e => {
|
||||
console.error('Failed to setup memberships model', e)
|
||||
this.rootStore.log.error(
|
||||
'Failed to setup memberships model',
|
||||
e.toString(),
|
||||
)
|
||||
}),
|
||||
this.mainFeed.setup().catch(e => {
|
||||
console.error('Failed to setup main feed model', e)
|
||||
this.rootStore.log.error(
|
||||
'Failed to setup main feed model',
|
||||
e.toString(),
|
||||
)
|
||||
}),
|
||||
this.notifications.setup().catch(e => {
|
||||
console.error('Failed to setup notifications model', e)
|
||||
this.rootStore.log.error(
|
||||
'Failed to setup notifications model',
|
||||
e.toString(),
|
||||
)
|
||||
}),
|
||||
])
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue