about summary refs log tree commit diff
path: root/src/state/models/me.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-02 17:38:13 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-02 17:38:13 -0600
commitf6a0e634d78eb97d1d877033bf620ea982038731 (patch)
tree5d6b7ccbc8f6a587c3910c760bceeefda0c0a291 /src/state/models/me.ts
parent99cec71ed798b29079eb474acd6f7cc799b51a51 (diff)
downloadvoidsky-f6a0e634d78eb97d1d877033bf620ea982038731.tar.zst
Implement logging system
Diffstat (limited to 'src/state/models/me.ts')
-rw-r--r--src/state/models/me.ts15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts
index 9591acb80..ae1e6aed2 100644
--- a/src/state/models/me.ts
+++ b/src/state/models/me.ts
@@ -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 {