diff options
author | Hailey <me@haileyok.com> | 2024-02-26 20:19:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 20:19:06 -0800 |
commit | c8582924e2421e5383050c4f60a80d2e74287c07 (patch) | |
tree | a17f8ebcec28a1ed70e57bc1fc01ed3a130d0090 /src/state/persisted/index.ts | |
parent | 1a349216612d3c36edef47cac6bbd4b72a34ab38 (diff) | |
download | voidsky-c8582924e2421e5383050c4f60a80d2e74287c07.tar.zst |
Scale back sentry logs for trivial events (#2997)
* scale back sentry logs * update migrate log tests
Diffstat (limited to 'src/state/persisted/index.ts')
-rw-r--r-- | src/state/persisted/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state/persisted/index.ts b/src/state/persisted/index.ts index 2f34c2dbf..f57172d2f 100644 --- a/src/state/persisted/index.ts +++ b/src/state/persisted/index.ts @@ -19,7 +19,7 @@ const _emitter = new EventEmitter() * the Provider. */ export async function init() { - logger.info('persisted state: initializing') + logger.debug('persisted state: initializing') broadcast.onmessage = onBroadcastMessage @@ -27,11 +27,11 @@ export async function init() { await migrate() // migrate old store const stored = await store.read() // check for new store if (!stored) { - logger.info('persisted state: initializing default storage') + logger.debug('persisted state: initializing default storage') await store.write(defaults) // opt: init new store } _state = stored || defaults // return new store - logger.log('persisted state: initialized') + logger.debug('persisted state: initialized') } catch (e) { logger.error('persisted state: failed to load root state from storage', { message: e, |