Raise levels of some logs during pre-release (#1994)

This commit is contained in:
Eric Bailey 2023-11-26 15:44:30 -06:00 committed by GitHub
parent 4a59227459
commit 08355e5166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -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
}
}