diff --git a/src/Lifecycle.ts b/src/Lifecycle.ts index 20e7435599..dcd4ae9c00 100644 --- a/src/Lifecycle.ts +++ b/src/Lifecycle.ts @@ -621,6 +621,9 @@ export async function restoreSessionFromStorage(opts?: { ignoreGuest?: boolean } await getStoredSessionVars(); if (hasAccessToken && !accessToken) { + logger.warn( + "restoreSessionFromStorage: storage indicates we should have an access token, but we do not. Displaying StorageEvictedDialog", + ); await abortLogin(); } @@ -823,6 +826,7 @@ async function doSetLoggedIn( // crypto store, we'll be generally confused when handling encrypted data. // Show a modal recommending a full reset of storage. if (results.dataInLocalStorage && results.cryptoInited && !results.dataInCryptoStore) { + logger.warn("doSetLoggedIn: StorageManager consistency check failed; displaying StorageEvictedDialog."); await abortLogin(); }