diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-02 21:39:15 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-02 21:39:15 -0600 |
commit | 4eabc2d65aa742e6cf55822943f04275531d0375 (patch) | |
tree | 645742da4a45eef45019d2d0193f022b3672e01c /src/state/index.ts | |
parent | 6885fb2b41efdb29e386cf696ea7304baf3a87c8 (diff) | |
download | voidsky-4eabc2d65aa742e6cf55822943f04275531d0375.tar.zst |
Improve error logging
Diffstat (limited to 'src/state/index.ts')
-rw-r--r-- | src/state/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/index.ts b/src/state/index.ts index a8b95cc65..bc8a16949 100644 --- a/src/state/index.ts +++ b/src/state/index.ts @@ -25,7 +25,7 @@ export async function setupState() { data = (await storage.load(ROOT_STATE_STORAGE_KEY)) || {} rootStore.hydrate(data) } catch (e: any) { - rootStore.log.error('Failed to load state from storage', e.toString()) + rootStore.log.error('Failed to load state from storage', e) } rootStore.log.debug('Initial hydrate') @@ -36,7 +36,7 @@ export async function setupState() { return rootStore.fetchStateUpdate() }) .catch((e: any) => { - rootStore.log.warn('Failed initial connect', e.toString()) + rootStore.log.warn('Failed initial connect', e) }) // @ts-ignore .on() is correct -prf api.sessionManager.on('session', () => { |