about summary refs log tree commit diff
path: root/src/state/models/root-store.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-04 12:58:50 -0500
committerEric Bailey <git@esb.lol>2023-11-04 12:58:50 -0500
commit7e29ebbadbf6246a664a2bf45b3798b3ecd87955 (patch)
tree4808764811049c27748112cdfa575abeef8fb948 /src/state/models/root-store.ts
parentdf0dcf32f99631c52b039c7f1934481924d37465 (diff)
downloadvoidsky-7e29ebbadbf6246a664a2bf45b3798b3ecd87955.tar.zst
Fix other error logs while I'm at it
Diffstat (limited to 'src/state/models/root-store.ts')
-rw-r--r--src/state/models/root-store.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts
index c9b460ba4..621c87c11 100644
--- a/src/state/models/root-store.ts
+++ b/src/state/models/root-store.ts
@@ -130,7 +130,7 @@ export class RootStoreModel {
       })
       this.updateSessionState()
     } catch (e: any) {
-      this.log.warn('Failed to initialize session', e)
+      this.log.warn('Failed to initialize session', {error: e})
     }
   }
 
@@ -184,7 +184,7 @@ export class RootStoreModel {
       await this.me.updateIfNeeded()
       await this.preferences.sync()
     } catch (e: any) {
-      this.log.error('Failed to fetch latest state', e)
+      this.log.error('Failed to fetch latest state', {error: e})
     }
   }