about summary refs log tree commit diff
path: root/src/state/persisted/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/persisted/index.ts')
-rw-r--r--src/state/persisted/index.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state/persisted/index.ts b/src/state/persisted/index.ts
index f6eff4257..545fdc0e1 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.debug('persisted state: initializing')
+  logger.info('persisted state: initializing')
 
   broadcast.onmessage = onBroadcastMessage
 
@@ -28,11 +28,12 @@ export async function init() {
     const stored = await store.read() // check for new store
     if (!stored) await store.write(defaults) // opt: init new store
     _state = stored || defaults // return new store
+    logger.log('persisted state: initialized')
   } catch (e) {
     logger.error('persisted state: failed to load root state from storage', {
       error: e,
     })
-    // AsyncStorage failured, but we can still continue in memory
+    // AsyncStorage failure, but we can still continue in memory
     return defaults
   }
 }