about summary refs log tree commit diff
path: root/src/state/models/ui/profile.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-04 13:12:46 -0500
committerGitHub <noreply@github.com>2023-11-04 13:12:46 -0500
commite49a3d8a564b2aa42a8c0e66dfcbae27d096dc26 (patch)
treef3b498168963bc9b945428f16c309670b18602d4 /src/state/models/ui/profile.ts
parent46c2564e6531712538e44ee6880fb4bfce612ab9 (diff)
parent0c76866757367953cc6e7cc8c9ad9fcfdb00a862 (diff)
downloadvoidsky-e49a3d8a564b2aa42a8c0e66dfcbae27d096dc26.tar.zst
Merge pull request #1813 from bluesky-social/eric/app-903-extract-logger-into-singleton
Add new logger
Diffstat (limited to 'src/state/models/ui/profile.ts')
-rw-r--r--src/state/models/ui/profile.ts12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/state/models/ui/profile.ts b/src/state/models/ui/profile.ts
index 8525426bf..47a99a8fc 100644
--- a/src/state/models/ui/profile.ts
+++ b/src/state/models/ui/profile.ts
@@ -223,10 +223,14 @@ export class ProfileUiModel {
     await Promise.all([
       this.profile
         .setup()
-        .catch(err => this.rootStore.log.error('Failed to fetch profile', err)),
+        .catch(err =>
+          this.rootStore.log.error('Failed to fetch profile', {error: err}),
+        ),
       this.feed
         .setup()
-        .catch(err => this.rootStore.log.error('Failed to fetch feed', err)),
+        .catch(err =>
+          this.rootStore.log.error('Failed to fetch feed', {error: err}),
+        ),
     ])
     runInAction(() => {
       this.isAuthenticatedUser =
@@ -237,7 +241,9 @@ export class ProfileUiModel {
     this.lists.source = this.profile.did
     this.lists
       .loadMore()
-      .catch(err => this.rootStore.log.error('Failed to fetch lists', err))
+      .catch(err =>
+        this.rootStore.log.error('Failed to fetch lists', {error: err}),
+      )
   }
 
   async refresh() {